PRO

Three.js Infinite Slider

A vertical WebGL image loop with velocity distortion. Drag, wheel, and touch input move a wrapped plane stack while mesh vertices bend forward during fast motion and the active title tracks the nearest frame.

Component

Contour

01 / 10

Install
npx shadcn@latest add @compronents/threejs-infinite-slider

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
slides{ name: string; image: string }[]10 Compronents-hosted JPGsNamed texture set used by the infinite stack.
minHeight / maxHeight / aspectRationumber1 / 1.5 / 1.5Plane sizing range in world units.
distortionStrengthnumber2.5Strength multiplier for velocity-based vertex bending.
Customize
slidesasset-url

Slide names and texture URLs mapped onto the WebGL planes.

distortionStrengthtuple

How far the mesh bends when wheel or drag input spikes.

Dependencies
three