devnomic / marquee

A beautiful marquee component for React.

Home Page:https://marquee-dev.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A beautiful marquee component for React.

https://marquee-dev.vercel.app

License:MIT License


Languages

Language:TypeScript 89.7%Language:JavaScript 7.4%Language:HTML 1.8%Language:CSS 1.2%