CSS tip: you can finally animate to height: auto.
Marko Denic
Visit on X@denicmarko266K followers
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
