A beautiful marquee component for Svelte ✨.
# ✨ Auto-detect
npx nypm install @selemondev/svelte-marquee
# npm
npm install @selemondev/svelte-marquee
# yarn
yarn add @selemondev/svelte-marquee
# pnpm
pnpm install @selemondev/svelte-marquee
# bun
bun install @selemondev/svelte-marquee
# deno
deno 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).
import { Marquee } from "@selemondev/svelte-marquee";
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. Check out the documentation for more information.
<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.
Inspired by @devnomic's React Marquee component.
Inspired by @selemondev's Vue Marquee component.
Released under MIT by @selemondev.