react-beautiful-marquee
v1.1.5
Published
A beautiful marquee component for React.
Readme
Marquee 🌬️
A beautiful marquee component for React 18/19.
Advantages over alternatives
- ✅ Built for React 18/19
- ✅ Supports (but doesn't require) Tailwind CSS - Won't affect any of your other CSS
- ✅ Includes ARIA attributes
- ✅ Built for performance
Demo
Installation
npm install react-beautiful-marqueeImport
import { Marquee } from 'react-beautiful-marquee';Usage
This library has very few props and self explanatory, you can get it running in no time. See web example for more details.
<Marquee
fade={true}
direction='left'
reverse={false}
pauseOnHover={false}
speed='normal' // 'slow' (30s), 'normal' (20s), or 'fast' (10s)
className='' // pass class to override gap or add other styling
innerClassName='' // pass class to override duration (e.g. [--duration:5s])
>
<div>Content 1</div>
<div>Content 2</div>
<div>Content 3</div>
<div>Content 4</div>
</Marquee>This lib made specifically for tailwind users, however you can use normal css class too, to override the gap by passing class.
License
This project is a fork of marquee by @devnomic, licensed under MIT. Modifications and enhancements © 2025 Elliot Padfield, also under the MIT License.
