Warp Background
A stunning 3D perspective grid with animated colored light beams. Creates a futuristic warping effect perfect for hero sections and feature cards.Installation
Usage
Props
The content to display on top of the warp background.
The CSS perspective value in pixels. Controls the depth of the 3D effect.
The number of animated light beams to display on each side of the grid.
The width of each beam as a percentage of the grid.
The minimum delay before a beam animation starts in seconds.
The maximum delay before a beam animation starts in seconds.
The duration of each beam’s animation cycle in seconds.
The color of the grid lines. Accepts any valid CSS color.
Additional CSS classes to apply to the container element.
Examples
Basic Warp Background
More Beams
Faster Animation
Custom Grid Color
Deeper Perspective
Wider Beams
Notes
- Uses motion-sv for smooth beam animations
- Beams have randomized colors (hue) and aspect ratios
- Grid is rendered on all four sides (top, bottom, left, right)
- Each beam animates independently with random delays
- Uses CSS container queries for responsive sizing
- The component includes a border and padding by default
- Content is rendered in a relative positioned layer above the background
- Beams move from back to front creating a depth effect