@devnomic/marquee
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Marquee
🌬️

A beautiful marquee components for React.

NPM Version

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.

License

Released under MIT by @devnomic.

Readme

Keywords

none

Package Sidebar

Install

npm i @devnomic/marquee

Weekly Downloads

1,815

Version

1.0.2

License

MIT

Unpacked Size

557 kB

Total Files

35

Last publish

Collaborators

  • devnomic