animated

Fire

A looping character-art fire animation with adjustable dimensions, cooling, and speed.

Install

pnpm add @fractaldesign/machines-ui
import '@fractaldesign/machines-ui/style.css';
import { GraphFire } from '@fractaldesign/machines-ui';

Preview

[ FURNACE ]

simulated fire

<GraphFire title="FURNACE" cols={48} rows={10} />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the burn. Default true. Reduced motion freezes a mid-burn frame.
cols number 60Width of the fire in characters. Default 60.
rows number 14Height of the fire in rows. Default 14.
speedMs number 90Milliseconds per simulation step. Default 90.
cooling number 0.6Random decay strength; higher burns out sooner. Default 0.6.
seedNum number 3Seed for the reproducible burn. Default 3.
label string 'simulated fire'Short caption under the art; the art itself is decorative.
class string ''

API

  • class forwarded to the outer element
  • motion runs live; set animated={false} to freeze
  • a11y honours prefers-reduced-motion

Types

NameKindDescription
Seginterface

Theming

CSS custom properties this component reads.

  • --graph-accent
  • --text-muted
  • --text-primary
  • --text-secondary

Related

Built from

src/lib/components/animated/GraphFire.svelte

machines-ui