Tunnel

Glowing frames rushing toward you down an endless tunnel. The tunnel bends toward your pointer, and hovering speeds it up.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Tunnel3D props

PropTypeDefaultDescription
countnumber16Number of frames.
depthnumber1500Tunnel length in px (how far away the last frame is).
speednumber260Base speed in px per second.
twistnumber5Degrees of twist per 100px of depth.
childrenReactNodeContent shown in the middle.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks