Рет қаралды 10,037
Find out how to easily transition from “height: 0;” to “height: auto;” and “display: none;” to “display: block;” without any hacks, tricks, or JavaScript, using only new CSS features: calc-size() function, transition-behavior property and @starting-style at-rule.
🔗 Links
Demo: codepen.io/ZoranJambor/pen/GR...
CSS Stickers: stickers.css-weekly.com
Guide to Logical Properties: • In-Depth Guide to CSS ... Experimental Web Platform features: • How to enable experime...
📖 Chapters
00:00 About CSS transitions & demo setup
01:26 How to transition to height: auto;
04:06 How to transition from display: none
04:43 How transition-behavior CSS property works
06:32 How @starting-style at-rule works
08:34 Browser support for transition-behavior & @starting-style
Subscribe to CSS Weekly Newsletter:
💌 css-weekly.com/
Help support my channel
🪧 Buy a CSS sticker pack: stickers.css-weekly.com
👨🎓 Get a course: masteringlinting.com/
💖 Jouin us on Patreon: / cssweekly
Keep up-to-date with CSS Weekly:
🐦 Twitter: / @cssweekly
🎶 TikTok: / cssweekly
🎇 Instagram: / cssweekly
📘 Facebook: / cssweekly
Keep up to date with what I'm up to:
👨💼 Blog: zoranjambor.com
💼 LinkedIn: / zoranjambor
- Zoran Jambor
#css #csstips