fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphRain

A looping character-art rain animation with adjustable trails and dimensions.

Install

GraphRain is a Svelte 5 animated ASCII rain component in @fractaldesign/machines-ui. It works in SvelteKit and in any Svelte 5 app.

pnpm add @fractaldesign/machines-ui

Import

import
import '@fractaldesign/machines-ui/style.css';
import { GraphRain } from '@fractaldesign/machines-ui';

Usage

Example
<GraphRain title="RAIN" cols={48} rows={12} />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the rain. Default true. Reduced motion freezes a single frame.true
cols number Width in character columns. Default 56.56
rows number Height in rows. Default 16.16
speedMs number Milliseconds per tick. Default 110.110
trail number Trail length behind each head. Default 8.8
seedNum number Seed for the reproducible rain. Default 5.5
label string Short caption under the art; the art itself is decorative.'glyph rain'
class string ''