Skip to main content

Harshal V. LADHE

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.
    Published at:
    Categories:CSS
    Estimated reading time:10 min read
  • Tutorial:Animating height: auto in CSS with interpolate-size

    Animate 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.
    Published at:
    Categories:Animations
    Estimated reading time:9 min read