Fireflies & Seasons

Fireflies, snow, paper or autumn leaves drifting over your page — drawn like the real thing, with real-world physics and soft shadows.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Download ZIP

fireflies.zip · source file + README with usage and props

Preview

Fireflies · Glowing fireflies blinking in near-sync. style="fireflies"

One canvas, four styles. Leaves (maple, oak, birch with veins) and paper scraps flutter in 3D — they foreshorten and flip to their darker back side — side-slip like real falling leaves and settle on the ground. Snow has bokeh flakes up close and crisp crystals far away, and drifts pile up and melt. Every item casts a soft shadow on the page that sharpens as it gets closer; fireflies cast a warm glow instead and blink in near-sync. Gusts sweep across, and your cursor is wind.

Installation

  1. 1.Download fireflies.zip and unzip it.
  2. 2.Copy the .tsx file into components/pickui/ (Tailwind CSS required).
  3. 3.Follow the README inside for usage.

Under the hood

The details that make it feel right, and that a one-line prompt usually misses:

  • 01Shadows offset & blur with each item's height above the page plane.
  • 02Depth layers: near items are bigger, blurrier and faster (parallax).

Props

PropTypeDefaultDescription
style"fireflies" | "snow" | "paper" | "leaves""fireflies"What drifts.
countnumber—Items (default depends on style).
windnumber0.3Steady wind, -1…1.
colorsstring[]—Palette override.
interactivebooleantrueCursor pushes items.
groundbooleantrueItems land and settle.
fullscreenbooleanfalseWhole page instead of the parent box.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Decorative layers are aria-hidden and never block clicks.
  • prefers-reduced-motion: frozen or disabled.