Backgrounds

Cinders

A dark field of embers and ash rising on the draft, aglow with amethyst.

Install

# Cinders needs no npm packages

Then copy 2 files into your project:

  • components/registry/cinders/cinders.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
emberCountnumber140Number of embers and ash motes in the field.
riseSpeednumber1Upward drift speed of the embers.
turbulencenumber0.6Sideways sway as the motes rise.
emberSizenumber2Base radius of each mote.
glownumber8Halo size around each spark.
draftStrengthnumber1How strongly the cursor stirs a draft.
emberColorstring (hex)"#a855f7"Amethyst ember glow color.
backgroundColorstring (hex)"#0a0510"Dark field the motes rise against.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Float
A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.

Related Components

Appears In