This new CSS property just solved animating to height auto

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI6 min

About this video

A short CSS tutorial showing how the interpolate-size property lets an element transition its height to auto, with a walkthrough of making the animation work in both directions and with other keyword sizes. It suits front-end developers and designers who already work with CSS.

What you’ll learn

  • Add a height transition to an element in CSS
  • Make an auto-height animation work in both directions
  • Apply interpolate-size to the body to enable keyword sizes