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.
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.
0 vue
Publié le 05/11/2026 13:56
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.
0 commentaire
?