Warp Background
A container component that applies a warp animation effect to its children
API
Prop Name | Type | Default | Description |
---|---|---|---|
perspective | number | 100 | The perspective of the warp animation |
beamsPerSide | number | 3 | The number of beams per side |
beamSize | number | 5 | The size of the beams |
beamDelayMax | number | 3 | The maximum delay of the beams |
beamDelayMin | number | 0 | The minimum delay of the beams |
beamDuration | number | 3 | The duration of the beams |
gridColor | string | "hsl(var(--border))" | The color of the grid lines |
Component Code
You can copy and paste the following code to create these components:
Credits
- Credits to Whbbit1999 for this component.
- Inspired and ported from Magic UI WarpBackground.