# Parallax Stack

> Overlapping images that drift at different speeds and tidy into a stack as you scroll, for editorial storytelling.

Category: Layout · MotionKit Plus · Updated 2026-10-20 · Live demo: https://www.motionkitui.com/components/parallax-stack

## When to use it

Editorial stories, portfolio case studies, travel and product photography.

## How it works

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.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/parallax-stack` after adding their registry token from https://www.motionkitui.com/account.

## Props

| 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. |

## Accessibility

- **Keyboard: Not applicable.** Images only, with nothing to focus.
- **Screen readers: Pass.** Each image keeps the alt text you pass in.
- **Reduced motion: Pass.** With reduced motion on, the images sit still in their tidy stack.
- **Colour contrast: Not applicable.** Images only. Check any text you overlay yourself.
