Backgrounds

Shadowflame

A black flame with an amethyst core, its body folded from domain-warped noise.

Install

bun add ogl

Then copy 2 files into your project:

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

Props

PropTypeDefaultDescription
coreColorstring (hex)"#a855f7"Amethyst core of the flame.
flameColorstring (hex)"#630475"Dark body of the black flame.
backgroundColorstring (hex)"#05010a"The void the flame rises against.
speednumber0.6Rise speed of the flame.
warpnumber1Domain-warp turbulence folding the flame.
detailnumber4Number of noise octaves.
shimmernumber0.5Rising heat-shimmer distortion.
heightnumber0.95How far up the frame the flame reaches. Above 1 the taper never completes inside the frame, so the flame runs off the top edge instead of dying out.
grainnumber0.05Film grain over the field.
flameWidthnumber1.6Horizontal spread of the flame.
sparkCountnumber60Number of rising fire sparks (0 turns them off).
sparkSizenumber1.2Size of each rising spark.
sparkSpeednumber1Rise speed of the sparks.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.

Related Components

Appears In