Animate and do math on things like height: auto with interpolate-size and calc-size()

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI15 min

About this video

Shows how to animate height: auto in CSS using interpolate-size and the calc-size() function, including when to use each. The chapters suggest it suits people who already write CSS.

What you’ll learn

  • Animate elements to height: auto using interpolate-size
  • Apply interpolate-size to the html selector and use it as a progressive enhancement
  • Use calc-size() to animate and calculate sizes such as height: auto