<linkrel="stylesheet"href="https://unpkg.com/@intility/bifrost-css@latest/dist/bifrost-all.css"/><linkrel="stylesheet"href="styles.css"/><divclass="bf-page-padding bfl-grid"><label><inputtype="checkbox"checked/> expanded</label><divclass="bf-expand"><div><pclass="bf-p">
"I really wish I had my hammer."
<br/>
"Hammer?"
<br/>
"Quite unique. It was made from this special metal from the heart of a
dying star. And when I spun it really, really fast it gave me the
ability to fly."
<br/>
"You rode a hammer?"
<br/>
"No, I didn't ride the hammer."
<br/>
"The hammer rode you on your back?"
<br/>
"No. I used to spin it really fast, and it would pull me off the..."
<br/>
"Oh, my God. The hammer pulled you off?"
<br/>
"The ground. It would pull me off the ground, up into the air, and I
would fly. Every time I threw it, it would always come back to me."
<br/>
"Sounds like you had a pretty special and intimate relationship with
this hammer and that losing it was almost comparable to losing a loved
one."
<br/>
"That's a nice way of putting it.
</p></div></div><script>constcheckbox = document.querySelector('input[type="checkbox"]');constcontent = document.querySelector(".bf-expand");checkbox.addEventListener("change",()=>{content.classList.toggle("bf-expand-closed");});</script></div>
The .bf-expand class applies overflow: hidden in order to hide content while
transitioning between open/closed. This may have side-effects you don't want on
an expanded section (like a select dropdown or hover tooltip getting clipped).