Skip to content
IndexRequest a UIAboutContact

Success Confetti Burst

A button that bursts confetti when a task completes, with a calm checkmark for reduced motion.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Celebration illustration of a burst of colourful confetti exploding upward and outward from a round dark button with a white checkmark, small rectangles and circles in coral, yellow, teal and violet, frozen mid-air at different angles with a slight motion blur, a soft glow behind the button, clean off-white background, joyful and uncluttered. Variant: a calm static version with only a green checkmark badge and the text Done. Negative: clutter, photographic backgrounds, text errors, logos, noise. Reduced motion: static checkmark.

About this pattern

Definition

Confetti marks a moment of achievement, such as finishing onboarding or completing a goal. Pieces fly outward from a point, spin, fall under gravity and fade. It should be rare, short and skippable, because overuse makes celebration meaningless.

Purpose & UX principles

  • Use about 30 to 60 small pieces in a few brand colours.
  • Launch them from the action that caused the success.
  • Animate with the Web Animations API and remove the elements when done, in about 1.2 seconds.
  • Pair with a clear message; the confetti is decoration, not the information.

Interaction states

  • A Complete task button and a Replay.

Motion specification

  • Pieces burst, spin and fall for 1.2 seconds, then are removed.
  • Reduced motion: no particles; a checkmark and message appear instead.

Responsive behaviour

  • Provide a non-motion alternative: a checkmark and a message.
  • Do not fire it on every small action.

Code

HTML
<div class="bx"><div class="ar" id="ar"><button class="cb" id="cb" type="button">Complete task</button><p class="ms" id="ms" role="status"></p></div><button class="mini" id="rs" type="button">Reset</button></div>

Related patterns

Animated Checkmark Button

↗
Animated Checkmark ButtonMicro Interactions

Reaction Picker

↗
Reaction PickerMicro Interactions

Optimistic Update & Rollback

↗
Optimistic Update & RollbackLoading & Progress