Bring a smile to your users’ face with a confetti celebration

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI56 min

About this video

A step-by-step CSS and SCSS tutorial for building a confetti explosion animation that plays on click, using 3D perspective, preserved 3D and a second settling animation. It suits front-end developers who want to add celebratory feedback to interfaces.

What you’ll learn

  • Build a 3D confetti container using perspective and preserve-3D
  • Animate confetti pieces with a two-stage CSS animation
  • Trigger the animation on click with a small piece of JavaScript