New magic for animations in CSS | Chase McCoy
June 3, 2024
There are two new features coming to CSS that will make it much easier to further avoid JavaScript when implementing animations:
- Animating to and from display: none; for the sake of enter/exit animations.
- Animating to and from the intrinsic size of an element (such as height: auto;).
Since the dawn of CSS based animations, two significant hurdles faced developers. I addressed one of them at least way back in 2013 in an early talk on CSS animation. Now, they are a solved problem.