BackgroundsProNew

Warp Background

A card sits inside a 3D grid tunnel with light beams racing along its walls.

Customize

beamColor
gridColor

Based on Warp Background (MIT license) · Terms of use

Props

10 properties
PropertyTypeDefaultDescription
childrenReactNode—Content in the middle of the tunnel, usually a card.
perspectivenumber100Perspective depth in pixels. Lower means a deeper tunnel.
beamsPerSidenumber3Beams on each wall.
beamSizenumber5Beam width and grid step, in percent.
beamDurationnumber3Seconds for a beam to cross a wall.
beamDelayMinnumber0Shortest delay before a beam, in seconds.
beamDelayMaxnumber3Longest delay before a beam, in seconds.
beamColorstring"rgba(255, 255, 255, 0.7)"Beam color.
gridColorstring"rgba(255, 255, 255, 0.08)"Color of the grid lines on the walls.
classNamestring—Tailwind classes for the wrapper.

Dependencies

3 required packages

npm install motion clsx tailwind-merge

Related components

View all