Warp Background

A description for Warp Background component.

motion-sv
Congratulations on Your Promotion!

Your hard work and dedication have paid off. We're thrilled to see you take this next step in your career. Keep up the fantastic work!

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/warp-background.json

Usage

<script lang="ts">	import { WarpBackground } from "#lib/components/magic/warp-background/index.js";</script>
<WarpBackground>	<div class="rounded-xl bg-background p-8">Warped background</div></WarpBackground>

Props

Warp Background

A component for Warp Background.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
perspectivenumber100Perspective value for the 3D effect
beamsPerSidenumber3Number of beams per side
beamSizenumber5Size of each beam
beamDelayMaxnumber3Maximum delay for each beam
beamDelayMinnumber0Minimum delay for each beam
beamDurationnumber3Duration of each beam animation
gridColorstring"var(--border)"Color of the grid
childrenSnippetrequiredThe content to wrap