Variants
Sticker Trail — an orange powder trail streaming off the cursor on white, with clicks landing die-cut gym stickers that float up and fade

API Reference

Props for <StickerTrail />

S

Motion score

Compositor-only

Category
Cursor Effects
Framework
React
Published
Dec 4, 2026
Dependencies
Variants

Sticker Trail: a click animation for React

Move the mouse and a stream of orange powder sinks and fades behind it. Click any empty spot and a die-cut sticker spins in, settles, floats up and fades away. Swap the powder for confetti, coffee beans or music notes.

Use Sticker Trail as a click animation layer on a landing page, a café menu or an invitation, so empty space reacts when visitors click it. Pick the icons, the trail and how each sticker lands. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Sticker Trail?

Sticker Trail is a click animation for React that drops a die-cut sticker wherever someone clicks empty space, while the moving mouse leaves a trail behind it. It sits over your section as a layer and turns blank areas into interactive stickers. Links, buttons, fields and labels keep their own clicks and drop nothing. It's a single React file that uses the cn helper and lucide-react icons.

How Sticker Trail works

The trail is drawn on a canvas. Each mouse move throws out density (6) pieces, sized by grainSize. They stay in the air for about 1.3 seconds, which powderLife scales up or down. trail sets what they are: powder that sinks, confetti in all three colors that tumbles down, beans that drop end over end, or notes that drift up and sway. The trail needs a mouse, so touch screens don't show it.

Each click adds a sticker on that spot. It takes the next icon from iconSet (gym, café, party or music) and the next of three fills: the trail color, darkColor or lightColor, all inside a white die-cut edge. stickerMotion picks the click effect: float spins in and drifts up, burst pops in a spray of confetti, steam bobs in place with steam curling off it, and beat thumps three times with rings and a bouncing equalizer. Each sticker animation lasts stickerDuration (1,700 ms). Once there are maxStickers (8) on screen, the next click replaces the oldest one.

Customization options

Change the five colors, the icon set, the trail style, the piece size and opacity, and the sticker size, corners, motion and timing in the Customize panel, save a look as a variant, then install. Turn powder or stickers off to keep just one of the two. In the source, place it inside the section it should cover: it fills its parent and listens for clicks there, so give that parent a size and relative positioning. With reduced motion turned on, neither the trail nor the stickers run.

Use cases

  • Gym and fitness pages, with Default: orange powder and dumbbell, flame and trophy stickers that float up.
  • Café menus, with Coffee: beans tumbling behind the mouse and round café badges with steam curling up.
  • Party invitations, with Birthday: pink, violet and butter-yellow confetti and big party stickers that burst.
  • Gig and album pages, with Concert: drifting music notes and record-label stickers that pulse to the beat.

FAQs