Marquee

A marquee component with hover to slow down the animation.

Sarah ChenProduct Designer

RankFlow UI has completely transformed my workflow. The components are stunning and so easy to customize.

Marcus WrightFrontend Lead

The attention to detail in these animations is next level. It's the premium feel we've been looking for.

Elena RossiFullstack Dev

Finally, a UI library that doesn't just look good but feels incredibly smooth. Highly recommended!

David KimStartup Founder

Building our landing page was a breeze. Our conversion rates improved immediately after switching.

Sarah ChenProduct Designer

RankFlow UI has completely transformed my workflow. The components are stunning and so easy to customize.

Marcus WrightFrontend Lead

The attention to detail in these animations is next level. It's the premium feel we've been looking for.

Elena RossiFullstack Dev

Finally, a UI library that doesn't just look good but feels incredibly smooth. Highly recommended!

David KimStartup Founder

Building our landing page was a breeze. Our conversion rates improved immediately after switching.

Sarah ChenProduct Designer

RankFlow UI has completely transformed my workflow. The components are stunning and so easy to customize.

Marcus WrightFrontend Lead

The attention to detail in these animations is next level. It's the premium feel we've been looking for.

Elena RossiFullstack Dev

Finally, a UI library that doesn't just look good but feels incredibly smooth. Highly recommended!

David KimStartup Founder

Building our landing page was a breeze. Our conversion rates improved immediately after switching.

Sarah ChenProduct Designer

RankFlow UI has completely transformed my workflow. The components are stunning and so easy to customize.

Marcus WrightFrontend Lead

The attention to detail in these animations is next level. It's the premium feel we've been looking for.

Elena RossiFullstack Dev

Finally, a UI library that doesn't just look good but feels incredibly smooth. Highly recommended!

David KimStartup Founder

Building our landing page was a breeze. Our conversion rates improved immediately after switching.

Dependencies

Install the following dependencies to use this component:

npm install motion clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

npx rankflow-ui@latest add marquee

Props

1interface MarqueeProps {
2 /**
3 * The content to scroll.
4 */
5 children: ReactNode;
6
7 /**
8 * The scroll direction.
9 * @default left
10 */
11 direction?: left | right;
12
13 /**
14 * The speed of the animation.
15 * @default 20
16 */
17 speed?: number;
18
19 /**
20 * Whether to pause the animation on hover.
21 * @default true
22 */
23 pauseOnHover?: boolean;
24
25 /**
26 * Additional CSS classes.
27 * @default ''
28 */
29 className?: string;
30}