Skip to content
ReactHive

Sticker Trail

The pointer leaves a trail of stickers. Each one pops down where you passed, hangs a moment, then drops off the bottom, spinning. Move slowly for a neat line, fast to spray them, and click for a handful at once. While nobody's moving, it draws a loop of its own.

CursorReactHive OriginalNo packages, just React and Tailwind CSS
Sticker TrailCursor

How It Works

Each pointer move is walked from the last stamp along the straight line to the new point, and a sticker is laid every gap, carrying the leftover distance to the next move, so the spacing stays even however fast the events come. Speed widens the gap and gives each sticker a push along the motion and out to one side, which is the spray. A sticker pops in on an overshooting curve, slides out its push against drag, hangs, then gets a small hop and a spin and falls under gravity, fading as it goes.

Use It

Install it with shadcn, or copy the 2 files into one folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.

npx shadcn@latest add @reacthive/sticker-trail
Example
<StickerTrail className="h-svh">
  <h1>Follow the Fun.</h1>
</StickerTrail>
  • It's a section: give it a height and put your content inside as children; it sits over the trail. Links, buttons and anything marked data-trail-ignore work as usual.
  • size scales the stickers, life is how long each hangs before it drops (seconds), density how close together they're laid. autopilot draws a figure of eight while nobody's moving the pointer, so the section is never empty; it stops the moment someone moves.
  • On touch, dragging sideways draws a trail and a tap bursts a handful; an up or down drag scrolls the page as usual. With reduced motion there's no autopilot, and stickers appear and fade where they're laid.
  • It comes with 22 stickers of its own (stickers.ts). Pass stickers with your own image URLs to use those instead.
  • No packages: a fixed set of 64 images is reused, so a long trail costs no more than a short one.

Sticker Trail, Answered.

Free to use, what it needs and where it came from.

Your Next Site Starts with a Live Demo.

Click around first. What you see is exactly what you download.

Start a Project

Tell us what you're making. A few lines is plenty; we'll ask the rest on a call.

What do you need?
Rough budget (optional)

Or email projects@reacthive.dev