This custom property trick solves a common CSS problem
Kevin Powell Media Inc.
Creative Coding
CSS
April 28, 2025
Having to worry about browser support stinks, but thanks to a simple custom property trick, there’s a really easy way to create fallbacks for older browsers.
🔗 Links
Final Code:
https://codepen.io/kevinpowell/pen/vEYvBJd
Animating height with interpoate-size tutorial:
https://frontendmasters.com/tutorials/kevin-powell/calc-size-and-interpolate/
Easing Wizard:
https://easingwizard.com/
Josh’s website:
https://www.joshwcomeau.com/