Skip to content

ElliotPadfield/react-marquee

 
 

Repository files navigation

Marquee
🌬️

A beautiful marquee component for React 18/19.

NPM Version

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

Web Demo

Installation

npm install react-beautiful-marquee

Import

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.

About

A beautiful marquee component for React.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 88.7%
  • CSS 8.4%
  • JavaScript 1.8%
  • HTML 1.1%