@devnomic/marquee
v1.0.2
Published
A beautiful marquee component for React.
Downloads
7,935
Readme
Marquee 🌬️
A beautiful marquee components for React.
Installation
npm install @devnomic/marquee
Import
import { Marquee } from "@devnomic/marquee";
import "@devnomic/marquee/dist/index.css";
or you can skip npm install, and just copy and paste the source code into your component ala shadcn ui (don't forget to also copy tailwind config if you do this).
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}
className="" // pass class to change gap or speed
innerClassName="" // pass class to change gap or speed
>
<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.