Skip navigation
CSS tip: you can finally animate to height: auto.
0:00 / 0:18

CSS tip: you can finally animate to height: auto.

Marko Denic

@denicmarko266K followers

Visit on X

12,608 views

CSS tip: you can finally animate to height: auto. :root { interpolate-size: allow-keywords; } .panel { transition: height 0.3s; } Accordions open and close smoothly, no JS measuring. Browsers without support just snap, so it's safe to ship today.

Comments

Comments from the original post on X (Twitter)

No comments yet