Circuit Background
Web (React)
A highly ambient, canvas-based circuit board animation with interactive mouse ripple effects.
A premium HTML5 Canvas-based background animation. Technical circuit lines grow, branch off, and fade, while pointer hover and clicks trigger smooth, natural water ripples that respond to current theme modes.
Layout Element
Circuit Background
Move your mouse across this area or click to emit soft ripple waves. Watch ambient technical trails grow, turn at angles, and fade away in the background.
Installation
CLI
npx @modus-ui/cli add circuit-backgroundManual
- Copy the code from the component tab.
- Create a file at
components/ui/circuit-background.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
maxTrails | number | 60 | The maximum amount of concurrently active growing circuits. |
lineColor | string | - | Custom stroke color for circuit lines. (Defaults to theme-adapted colors). |
circleColor | string | - | Custom border color for connection node circles. (Defaults to theme-adapted colors). |
glowStrength | number | 6 | Glow shadow size in pixels. |
circleSize | number | 5 | Radius of the circuit connection nodes. |
spawnChance | number | 0.03 | Probability of spawning a new circuit line per frame. |
className | string | - | Additional CSS class for the canvas containers. |
Comments