Parallax Carousel

A draggable image carousel with a smooth parallax feel

parallax-carousel-tw

Customize

Geometry

360
480
32
16

Motion

0.4
0.85
0.08
1
1.4

Behaviour

40

Props

imagesstring[]

Ordered list of image URLs (required)

Default:[]
imageWidthnumber

Plane width in CSS pixels

Default:420
imageHeightnumber

Plane height in CSS pixels

Default:560
gapnumber

Horizontal gap between planes in CSS pixels

Default:32
parallaxIntensitynumber

UV-space horizontal counter-shift as planes drift from centre (0–1)

Default:0.4
uvScalenumber

Inner texture inset that gives the parallax shift room to move (0.6–1)

Default:0.85
lerpnumber

Smoothing factor for the scroll lerp (0–1)

Default:0.08
wheelSensitivitynumber

Multiplier on wheel deltas

Default:1
dragSensitivitynumber

Multiplier on pointer-drag deltas

Default:1.4
loopboolean

Loop endlessly horizontally (planes wrap around)

Default:false
borderRadiusnumber

Border radius applied to each plane in CSS pixels

Default:16
autoplaySpeednumber

Idle drift speed in CSS px/s when not interacting

Default:0
pauseOnHoverboolean

Pause autoplay while the cursor is over the carousel

Default:true
showProgressboolean

Show a progress indicator at the bottom (hidden in loop mode)

Default:true
classNamestring

Additional CSS classes for the container

Default:""
refParallaxCarouselRef

Imperative API: { scrollToIndex(i), reset() }

Default:undefined