Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.23 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.23 KB

Marquee
🌬️

A beautiful marquee component for Svelte ✨.

Installation

npm install @selemondev/svelte-marquee

or you can skip the npm install, and just copy and paste the source code into your component like Shadcn Svelte (don't forget to also copy the tailwind config if you do this).

Register it as a local component

import { Marquee } from "@selemondev/svelte-marquee";
import "@selemondev/svelte-marquee/dist/style.css"

Usage

The library has a few props that are self-explanatory; you can get it running in no time. See the web examples for more details.

<Marquee 
direction="left" 
fade={true}
reverse={false}
pauseOnHover={false}
innerClassName="" // pass class to change gap or speed
>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>

This library is made specifically for Tailwind users, however you can also use vanilla CSS classes to override the gap.

Credits

License

Released under MIT by @selemondev.