# Parallax Gallery

> Three columns of images that drift at different speeds.

```tsx
import { ParallaxGallery } from '@brand-studio/ui';
import { beans, cup, pour } from '@/demos/assets';

export default function ParallaxGalleryDemo() {
  return (
    <div style={{ width: '100%', padding: '48px 0' }}>
      <ParallaxGallery images={[cup, beans, pour, beans, pour, cup, pour, cup, beans]} />
    </div>
  );
}
```

## Installation

```sh
npm install @brand-studio/ui
```

React 18 or 19 is a peer dependency. Import the stylesheet once and wrap the app in a brand theme:

```tsx
import '@brand-studio/ui/styles.css';
import { BrandTheme, ParallaxGallery } from '@brand-studio/ui';
import brand from './brand.json';

<BrandTheme palette={brand.tokens} mode="system">
  {/* your app */}
</BrandTheme>
```

## Usage

```tsx
import { ParallaxGallery } from '@brand-studio/ui';
```

```tsx
<ParallaxGallery images={images} />
```

## Accessibility

- Uses CSS scroll-driven animation; without support the columns stay still.
- Every image keeps its alt text.

## API Reference

| Prop | Type | Default |
|---|---|---|
| `images` | `ImageAsset[]` | – |
| `className?` | `string` | `''` |

Source: https://brandstudio.js.org/docs/components/parallax-gallery/
