Warp Background

A container component that applies a warp animation effect to its children

API

Prop NameTypeDefaultDescription
perspectivenumber100The perspective of the warp animation
beamsPerSidenumber3The number of beams per side
beamSizenumber5The size of the beams
beamDelayMaxnumber3The maximum delay of the beams
beamDelayMinnumber0The minimum delay of the beams
beamDurationnumber3The duration of the beams
gridColorstring"hsl(var(--border))"The color of the grid lines

Component Code

You can copy and paste the following code to create these components:

WarpBackground.vue
Beam.vue

Credits