More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | Array<{ image: string; caption?: string }> | [...] | Slides to morph between. Each item is an image URL with an optional caption. |
startIndex | Index of the slide shown on mount. | ||
transition | "melt" | "ripple" | "shear" | "swirl" | "melt" | Character of the GPU displacement morph between slides. |
duration | 1.1 | Length of a full transition in seconds. | |
ease | "power2.inOut" | GSAP easing curve used to drive the transition progress. | |
intensity | 0.55 | Strength of the displacement — how far the images warp during the morph. | |
scale | 2.4 | Frequency of the procedural noise field (affects the Melt transition most). | |
aberration | 0.35 | Amount of RGB split that peaks mid-transition and resolves to zero. | |
drift | 0.4 | Idle drift / breathing applied to the current image so it is never fully static. | |
autoplay | Advance slides automatically; pauses on hover. | ||
autoplayDelay | 4 | Seconds each slide holds before autoplay advances. | |
loop | Wrap around from the last slide back to the first. | ||
radius | 16 | Corner radius of the slider in pixels. | |
overlayColor | "#000000" | Tint used for the subtle edge vignette over the images. | |
showCaptions | Show slide captions that animate in with each transition. | ||
showControls | Show the previous / next arrow buttons. | ||
showIndicators | Show the slide indicator dots. | ||
"" | Additional CSS classes for the outer wrapper. |
itemsArray<{ image: string; caption?: string }>Slides to morph between. Each item is an image URL with an optional caption.
[...]startIndexnumberIndex of the slide shown on mount.
transition"melt" | "ripple" | "shear" | "swirl"Character of the GPU displacement morph between slides.
"melt"durationnumberLength of a full transition in seconds.
1.1easestringGSAP easing curve used to drive the transition progress.
"power2.inOut"intensitynumberStrength of the displacement — how far the images warp during the morph.
0.55scalenumberFrequency of the procedural noise field (affects the Melt transition most).
2.4aberrationnumberAmount of RGB split that peaks mid-transition and resolves to zero.
0.35driftnumberIdle drift / breathing applied to the current image so it is never fully static.
0.4autoplaybooleanAdvance slides automatically; pauses on hover.
autoplayDelaynumberSeconds each slide holds before autoplay advances.
4loopbooleanWrap around from the last slide back to the first.
radiusnumberCorner radius of the slider in pixels.
16overlayColorstringTint used for the subtle edge vignette over the images.
"#000000"showCaptionsbooleanShow slide captions that animate in with each transition.
showControlsbooleanShow the previous / next arrow buttons.
showIndicatorsbooleanShow the slide indicator dots.
Additional CSS classes for the outer wrapper.
""Dependencies
2 required packages
npm install ogl gsap


