Backgrounds Fancy Stable

MatrixRain

Canvas-based falling glyph rain with configurable color, speed, and density

Preview

Installation

pnpm add fancy-ui-svelte
import { MatrixRain } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { MatrixRain } from 'fancy-ui-svelte';
</script>

<MatrixRain />

Examples

Basic Usage

Composed Hero

Hero section with matrix rain background.

Interactive Playground

Props

PropTypeDefaultDescription
color string"#00ff41"Glyph color (classic terminal green)
speed number1.0Fall speed multiplier (< 1 slower, > 1 faster)
density number1.0Column density multiplier
glyphSize number16Font size of each glyph in pixels
fadeOpacity number0.05Opacity of the black overlay used to create trailing fade effect