Command Palette

Search for a command to run...

Docs
Falling Symbols Background

Falling Symbols Background

A Matrix-style falling symbols background with customizable characters and effects

Foreground Content

Installation

Usage

import FallingSymbolsBackground from "@/components/ruixen/falling-symbols-background";
 
export default function App() {
  return (
    <div className="relative h-screen w-full">
      <FallingSymbolsBackground
        symbols="░▒▓█▌▐"
        symbolColors={["rgba(255,255,255,0.6)", "rgba(255,255,255,0.4)"]}
        fontSize={16}
        backgroundColor="#080A12"
        glitchSpeed={80}
        glitchIntensity={0.03}
        fallSpeed={0.7}
        outerVignette={true}
      />
      <div className="relative z-10">{/* Your content here */}</div>
    </div>
  );
}

Props

PropTypeDefaultDescription
symbolsstring"░▒▓█▌▐"Characters to display as falling symbols
symbolColorsstring[]["rgba(255,255,255,0.6)", "rgba(255,255,255,0.4)", ...]Array of colors for the symbols
fontSizenumber16Font size of the symbols
backgroundColorstring"#080A12"Background color
glitchSpeednumber80Speed of character glitching (ms)
glitchIntensitynumber0.03Intensity of glitch effect (0-1)
fallSpeednumber0.7Speed of falling animation
outerVignettebooleantrueWhether to show outer vignette effect
classNamestring"w-full h-full"Additional CSS classes