We Can Finally Animate height: auto; in CSS!

Опубликовано: 13 Сентябрь 2024
на канале: Web Dev Simplified
64k
3k

CSS calc-size() Article:

CSS animations have gotten much better over time, but one thing that has always been a pain is animating to an auto size such as height. This is now a problem of the past, though, thanks to the new calc-size() CSS function. This single CSS function allows you to do some really cool stuff with animations and automatically makes auto sized animations work with no other code changes. On top of that there are a few other incredible new CSS animation features such as and transition-behavior that I cover in this video.


Materials/References:

CSS calc-size() Article:
Animation Crash Course Video:
Animation Fill Mode Article:


Find Me Here:

My Blog:
My Courses:
Patreon:
Twitter:
Discord:
GitHub:
CodePen:


⏱️ Timestamps:

00:00 - Introduction
00:36 - The Problem
02:03 - calc-size
03:38 -
07:27 - transition-behavior