Animating to auto with interpolate-size
Using `interpolate-size` to let CSS transitions animate to and from intrinsic sizes such as `height: auto`.
Content tagged interpolate-size
Tutorial:A Modern CSS Reset, Explained Rule by Rule
A small, modern reset, and the reason behind every line.A compact modern CSS reset, explained rule by rule: border-box sizing, margin removal, keyword animations with interpolate-size, readable line-height, block-level media, form controls that inherit your font, overflow-wrap and text-wrap for better line breaks, and an isolated stacking context — plus optional extras and the edge cases to watch for.Tutorial:Animating
height: autoin CSS withinterpolate-sizeAnimate height to auto in pure CSS, no JavaScript.Animate height: auto in CSS with interpolate-size and calc-size(): smooth accordions and details panels without JavaScript, plus fallbacks and reduced motion.