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 https://ui.aryank.space/r/threejs-infinite-slider.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

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