✳ Web Tattva Labs← Back to Labs

Intrinsic Size Transition.

Animate a panel from zero height to its natural content height with interpolate-size.

View code
<div class="example"><button type="button" class="action">Switch state</button><div class="accordion"><p>A panel whose open height comes from its content.</p></div></div>

Technique reference ↗