Toggle Sidebar B
AppearanceLight & dark mode D

Morph Slider

WebGL slider that melts between images with a displacement transition.

Default

Drag the image, use the arrows or press the arrow keys to morph to the next slide. Every prop is wired to the controls underneath.

Light previewReplay previewOpen in new tab
One

Customize

Transition
Overlay
Ease
Duration1.1s
Intensity0.55
Noise Scale2.4
Aberration0.35
Drift0.4
Autoplay Delay4s
Radius16px

API Reference

MorphSlider

PropTypeDefaultDescription
itemsArray<{ image: string; caption?: string }>[...]Slides to morph between. Each item is an image URL with an optional caption.
startIndexnumber0Index of the slide shown on mount.
transition"melt" | "ripple" | "shear" | "swirl""melt"Character of the GPU displacement morph between slides.
durationnumber1.1Length of a full transition in seconds.
easestring"power2.inOut"GSAP easing curve used to drive the transition progress.
intensitynumber0.55Strength of the displacement, how far the images warp during the morph.
scalenumber2.4Frequency of the procedural noise field (affects the Melt transition most).
aberrationnumber0.35Amount of RGB split that peaks mid-transition and resolves to zero.
driftnumber0.4Idle drift and breathing applied to the current image so it is never fully static.
autoplaybooleanfalseAdvance slides automatically; pauses on hover.
autoplayDelaynumber4Seconds each slide holds before autoplay advances.
loopbooleantrueWrap around from the last slide back to the first.
radiusnumber16Corner radius of the slider in pixels.
overlayColorstring"#000000"Tint used for the subtle edge vignette over the images.
showCaptionsbooleantrueShow slide captions that animate in with each transition.
showControlsbooleantrueShow the previous and next arrow buttons.
showIndicatorsbooleantrueShow the slide indicator dots.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
ArrowRightMorphs to the next slide.
ArrowLeftMorphs to the previous slide.
  • The stage is a focusable carousel group, captions are announced politely and the indicators are tabs with labels.
  • Respects prefers-reduced-motion: the displacement is turned off and transitions become short cross-fades.