0Views
0Copies

API Reference
Props for <StickerTrail />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#ffb31a" | The trail, and the fill of every third sticker. |
| darkColor | string | "#5a2b1a" | The fill of the dark stickers, and the icon on the light ones. |
| lightColor | string | "#f7f2ea" | The fill of the light stickers, and the icon on the dark ones. |
| inkColor | string | "#1f1510" | The icon on the stickers filled with the powder colour. |
| borderColor | string | "#ffffff" | The die-cut edge round every sticker. |
| Prop | Type | Default | Description |
|---|---|---|---|
| iconSet | 'gym' | 'cafe' | 'party' | 'music' | "gym" | The icons the stickers take, in turn. |
| trail | 'powder' | 'confetti' | 'beans' | 'notes' | "powder" | What the mouse leaves behind: chalky powder that sinks, confetti in all three colours that tumbles down, roasted coffee beans that drop end over end, or music notes that drift up swaying. |
| stickerMotion | 'float' | 'burst' | 'steam' | 'beat' | "float" | How a sticker lands: pops and floats up, pops in a burst of confetti, sits like a fresh cup with steam curling off it, or pulses to a beat with rings and a bouncing equalizer. |
| Prop | Type | Default | Description |
|---|---|---|---|
| density | number | 6 | Pieces thrown per mouse move; with notes, how big each note is. |
| grainSize | number | 1 | How big each grain, flake, bean or note is, as a multiple. |
| powderLife | number | 1 | How long the trail stays in the air, as a multiple of about 1.3 s. |
| powderOpacity | number | 0.7 | How strong the trail is at its brightest. |
| stickerSize | number | 38 | A sticker's width and height. |
| stickerRadius | number | 0.27 | Corner radius as a share of the sticker's size; 0.5 is round. |
| stickerDuration | number | 1700 | How long a sticker takes to land, show and fade. |
| maxStickers | number | 8 | The most stickers on screen at once; another click replaces the oldest. |
| Prop | Type | Default | Description |
|---|---|---|---|
| powder | boolean | true | Throw a trail off the moving mouse (mouse only; touch screens never get it). |
| stickers | boolean | true | Drop a sticker where it is clicked; links, buttons and fields keep their own click. |
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#
It's motion that responds to a click right where it happens, such as a ripple, a pop or a burst. Sticker Trail responds to a click on empty space with a die-cut sticker that lands, plays its motion and fades.
No. The layer never takes clicks itself. Links, buttons, form fields, labels and anything marked data-ui keep
their own behavior and drop no sticker.
No. Sticker Trail is a Pro component, included in every paid plan. Anything you install stays yours after your plan ends.
It's a React component for Next.js, Vite and Astro with Tailwind CSS v4. In a JavaScript project, the CLI converts
it to a .jsx file.