Animate CSS Shadows With This Trick...
Channel: Kevin Powell
Date: 2023-07-04

Check out iCodeThis for free daily challenges: https://icodethis.com/?ref=kevin (affiliate link, so if you upgrade to a PRO account, you also help support this channel 🙂).

When we have elements with shadows on them, and we animate them and want to have a realistic sense of depth, ideally, we also need to animate the shadow itself. This poses a problem though because, from a performance perspective, animating shadows is a terrible idea. That means we get to have fun coming up with a better solution though 🙂.

🔗 Links 
✅  iCodeThis: https://icodethis.com/?ref=kevin (affiliate link)

⌚ Timestamps
00:00 - Introduction
00:24 - What I started with
01:00 - The problem when I animated the shadow
01:45 - Using blur() instead of a box-shadow
04:36 - About iCodeThis

#css

--

Come hang out with other dev's in my Discord Community
💬 https://discord.gg/nTYCvrK

Keep up to date with everything I'm up to
✉ https://www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
📺 https://www.twitch.tv/kevinpowellcss

---

Help support my channel
👨‍🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome
💖 Support me on Patreon: https://www.patreon.com/kevinpowell

---

My editor: VS Code - https://code.visualstudio.com/

---

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, make sure to follow me on Instagram and Twitter.

Twitter: https://twitter.com/KevinJPowell
Codepen: https://codepen.io/kevinpowell/
Github: https://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!