Uploaded August 2025 | Updated December 2026, 3 hours ago
✅ Final code: codepen.io/kevinpowell/pen/vENZzBd
✅ More info on corner shape: frontendmasters.com/blog/understanding-css-corner-shape-and-the-power-of-the-superellipse
✅ Odd Bird’s article on fixing issues with anchor positioning: oddbird.net/2025/01/29/anchor-position-validity
✅ Easing Wizard: easingwizard.com
✅ Anchor position polyfill: github.com/oddbird/css-anchor-positioning
✅ I’ve got courses! kevinpowell.co/courses
✉ Keep up to date with everything I'm up to kevinpowell.co/newsletter
💬 Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
🎓 Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
⌚ Timestamps
00:00 - Introduction
00:37 - Basic setup
02:18 - Adding the pseudo-element for the “bubble”
03:30 - My first failed attempt at using anchor positioning
08:12 - How you can animate the anchor position between elements
10:20 - Be careful with position relative and anchor positioning
13:40 - Using calc() with anchor()
16:50 - Fixing the stacking of elements
17:45 - Improving the animation and shapes
20:16 - The cutout effect
#css
---
Help support my channel
👨🎓 Get a course: kevinpowell.co/courses
👕 Buy a shirt: cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join
---
🧑💻 My editor: VS Code - code.visualstudio.com
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
✅ Final code: codepen.io/kevinpowell/pen/vENZzBd
✅ More info on corner shape: frontendmasters.com/blog/understanding-css-corner-shape-and-the-power-of-the-superellipse
✅ Odd Bird’s article on fixing issues with anchor positioning: oddbird.net/2025/01/29/anchor-position-validity
✅ Easing Wizard: easingwizard.com
✅ Anchor position polyfill: github.com/oddbird/css-anchor-positioning
✅ I’ve got courses! kevinpowell.co/courses
✉ Keep up to date with everything I'm up to kevinpowell.co/newsletter
💬 Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
⭐ Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
🎓 Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
⌚ Timestamps
00:00 - Introduction
00:37 - Basic setup
02:18 - Adding the pseudo-element for the “bubble”
03:30 - My first failed attempt at using anchor positioning
08:12 - How you can animate the anchor position between elements
10:20 - Be careful with position relative and anchor positioning
13:40 - Using calc() with anchor()
16:50 - Fixing the stacking of elements
17:45 - Improving the animation and shapes
20:16 - The cutout effect
#css
---
Help support my channel
👨🎓 Get a course: kevinpowell.co/courses
👕 Buy a shirt: cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join
---
🧑💻 My editor: VS Code - code.visualstudio.com
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! Wrap detection with a few lines of CSS](https://i.ytimg.com/vi/9XKWnvpdSlU/mqdefault.jpg)

🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! 1000 video spectacular](https://i.ytimg.com/vi/9aJ2mvToldc/mqdefault.jpg)




🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
⌚ Timestamps
00:00 - Introduction
00:55 - reduce the number of keyframe declarations
01:35 - you don’t always need starting and ending keyframes
03:15 - mixing a transform and the individual properties
#css
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! Simplifying CSS animations](https://i.ytimg.com/vi/CAK5kTApkMU/mqdefault.jpg)

🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! How to set max-columns using auto-fit or auto-fill](https://i.ytimg.com/vi/CHULPvkXIRo/mqdefault.jpg)



🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! Stop fighting with CSS, forever](https://i.ytimg.com/vi/DoPq7pH1BKg/mqdefault.jpg)

🚀 Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
👨🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://cottonbureau.com/people/kevin-powell
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
🧑💻 My editor: VS Code - https://code.visualstudio.com/
🌈 My theme: One Dark Pro Var Night
🔤 My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome!
⌚ Timestamps
00:00 - Introduction
00:30 - flex: 1
06:10 - People over-complicate grid
11:46 - Direct grid and flexbox comparison
#css 2 common CSS layout misconceptions](https://i.ytimg.com/vi/DrtuwXh71hY/mqdefault.jpg)