Motion

Confetti

Buttons 186

About

Celebratory confetti particle explosion triggered by a button press, with spring-driven button feedback and randomised particle physics

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Confetti to your project and fits it to your theme.

Code

How Confetti is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import Confetti from "@/components/ui/motion-confetti"

export default function Default() {
  return (
    <div className="motion-example flex w-full items-center justify-center p-8">
      <Confetti />
    </div>
  )
}

Dependencies

More by Motion

View all
  • Material design ripple

    Material design ripple

    624
  • Scroll word reveal

    Scroll word reveal

    218
  • Floating Action Button

    Floating Action Button

    106
  • Scroll Horizontal Gallery

    Scroll Horizontal Gallery

    82
  • Split text

    Split text

    73
  • Fill text

    Fill text

    71
  • Skeleton shimmer

    Skeleton shimmer

    61
  • Create Button

    Create Button

    58

More in Buttons

View all
  • Button

    Button

    1
  • Button

    Button

    6
  • App Store Button

    App Store Button

    471
  • Button

    Button

    34
  • Button

    Button

    74
  • Button

    Button

    53
  • Native Button

    Native Button

    2
  • Figma File Button

    Figma File Button

    33