Marquee
🌬️
A beautiful marquee component for Svelte ✨.
Installation
npm install @selemondev/svelte-marquee
or you can skip 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=""
>
<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.