Animate CSS Shadows With This Trick...

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI6 min

About this video

A CSS tutorial on animating a shadow effect smoothly by using blur() in place of animating box-shadow, which is costly for performance. It suits developers and designers who already work with CSS animation.

What you’ll learn

  • Explain why animating box-shadow hurts performance
  • Replace a box-shadow animation with a blur() based effect
  • Apply the technique to elements that need a sense of depth