Images hung on a slowly turning 3D ring. Drag or swipe to spin it with real momentum; cards dim and fall back as they turn away.
Overlapping images that drift at different speeds and tidy into a stack as you scroll, for editorial storytelling.
Customize
Usage
import { ParallaxStack } from "@/components/motionkit/parallax-stack";
<ParallaxStack
images={[
{ src: "/work/one.jpg", alt: "Brand identity for Northwind" },
{ src: "/work/two.jpg", alt: "Packaging for Lumen" },
{ src: "/work/three.jpg", alt: "Website for Arcadia" },
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Drift and settle
Scroll position
Editorial stories, portfolio case studies, travel and product photography.
useScroll tracks the section from entering the screen to leaving it. Each image maps that progress to its own drift (deeper images travel further, which reads as depth) and to a position that tidies the scattered images into a neat stack around the middle of the screen, then loosens again.
| Prop | Type | Default | Description |
|---|---|---|---|
| images | { src, alt }[] | — | Up to five images. Extras are ignored. |
| strength | number | 120 | How far the images drift, in pixels. Deeper images drift more. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/parallax-stack. It saves the file to components/motionkit and installs its dependencies.
Parallax Stack is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the images sit still in their tidy stack.
Images hung on a slowly turning 3D ring. Drag or swipe to spin it with real momentum; cards dim and fall back as they turn away.
A seamless infinite scroller for logos and testimonials that pauses on hover.
Drag a handle across two layers to compare before and after, smoothly sprung.
The live preview is free to explore. Plus unlocks the source for Parallax Stack and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { ParallaxStack } from "@/components/motionkit/parallax-stack";
<ParallaxStack
images={[
{ src: "/work/one.jpg", alt: "Brand identity for Northwind" },
{ src: "/work/two.jpg", alt: "Packaging for Lumen" },
{ src: "/work/three.jpg", alt: "Website for Arcadia" },
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Drift and settle
Scroll position