# Scroll Text Marquee

Build a React marquee that changes speed and direction as you scroll. Try one-way and bidirectional examples and copy the source.

[Read on UI Layouts](https://www.ui-layouts.com/components/scroll-text-marquee)

## UniDirectional

Example: `scroll-text-marquee-unidirectional` · [scroll-text-marquee-unidirectional registry source](https://www.ui-layouts.com/r/scroll-text-marquee-unidirectional.json)

## Bidirectional

Example: `scroll-text-marquee-bidirectional` · [scroll-text-marquee-bidirectional registry source](https://www.ui-layouts.com/r/scroll-text-marquee-bidirectional.json)

## Installation

```bash
npx uilayouts@latest add text-marquee
```

```bash
npx shadcn@latest add 'https://www.ui-layouts.com/r/scroll-text-marquee.json'
```

```bash
npm install motion @motionone/utils
```

## Props

| Prop            | Type    | Default | Description                                          |
| --------------- | ------- | ------- | ---------------------------------------------------- |
| children        | string  |         | The content to be animated with a parallax effect.   |
| baseVelocity    | number  | `-5`    | The base velocity for the parallax effect.           |
| clasname        | string  |         | Optional CSS class for styling the component.        |
| scrollDependent | boolean | `false` | Whether the animation should depend on scroll.       |
| delay           | number  | `0`     | Delay before the animation starts (in milliseconds). |
