A component for showing/hiding content with a smooth transition.
But though Death searched for the third brother for many years, he was never able to find him. It was only when he attained a great age that the youngest brother finally took off the Cloak of Invisibility and gave it to his son. And then he greeted Death as an old friend, and went with him gladly, and, equals, they departed this life.
jsxcss
constExample=()=>{const[isVisible, setIsVisible]=useState(true);return(<><ContentRevealvisible={isVisible}><p> But though Death searched for the third brother for many years, he was
never able to find him. It was only when he attained a great age that
the youngest brother finally took off the Cloak of Invisibility and
gave it to his son. And then he greeted Death as an old friend, and
went with him gladly, and, equals, they departed this life.
</p></ContentReveal><buttononClick={()=>setIsVisible((state)=>!state)}className={s.button}>{isVisible ?'Close':'Open'}</button></>);}