Warp Background

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

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/warp-background.json"

Install Manually

Copy and paste the following code in the same folder

WarpBackground.vue
Beam.vue

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 in seconds
beamDelayMinnumber0The minimum delay of the beams in seconds
beamDurationnumber3The duration of the beams
gridColorstring"hsl(var(--border))"The color of the grid lines

Credits