Docs / Components / Marquee

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:

1npm install motion clsx tailwind-merge

Installation

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

1npx rankflow-ui@latest add marquee

Props Reference

PropTypeDefaultDescription
childrenReactNode-The content to scroll.
directionleft | rightleftThe scroll direction.
speednumber20The speed of the animation.
pauseOnHoverbooleantrueWhether to pause the animation on hover.
classNamestring''Additional CSS classes.