# Velocity Marquee

> Big lines of type that slide sideways without end, speeding up and leaning as you scroll.

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

export default function VelocityMarqueeDemo() {
  return (
    <div style={{ width: '100%', padding: '48px 0' }}>
      <VelocityMarquee lines={['Single origin', 'Roasted every Monday', 'Shipped on Friday']} />
    </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, VelocityMarquee } from '@brand-studio/ui';
import brand from './brand.json';

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

## Usage

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

```tsx
<VelocityMarquee lines={['Single origin', 'Roasted every Monday']} speed={40} />
```

## Accessibility

- Screen readers hear each line once as a list; the repeating copies are hidden from them.
- It pauses off screen, and the lines stand still under reduced motion.
- Keep the lines short and decorative; never put the only copy of a fact in a marquee.

## API Reference

| Prop | Type | Default |
|---|---|---|
| `lines` | `string[]` | – |
| `speed?` | `number` | `40` |
| `className?` | `string` | `''` |

Source: https://brandstudio.js.org/docs/components/velocity-marquee/
