npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

svelte-fast-marquee

v1.3.0

Published

Svelte marquee component — a fast, CSS-driven, drop-in marquee for Svelte and SvelteKit inspired by react-fast-marquee. SSR-friendly, TypeScript types, pauseOnHover, gradient fade.

Readme

Svelte Marquee Component — svelte-fast-marquee

A fast, lightweight marquee component for Svelte, inspired by react-fast-marquee. If you used react-fast-marquee in React, this is the Svelte version — a drop-in equivalent for Svelte and SvelteKit.

npm npm downloads npm license npm bundle size npm type definitions

  • CSS-driven animation — no JavaScript running per frame, zero dependencies
  • 🧩 Drop-in API modeled after react-fast-marquee
  • 🟠 Svelte 3, 4 and 5 compatible
  • 🌐 SSR / SvelteKit friendly — no browser-only APIs
  • 🦾 TypeScript definitions included
  • 🖱 Pause on hover / click (pauseOnHover, pauseOnClick)
  • 🌈 Gradient fade at the edges (gradientColor, gradientWidth)
  • 🎛 Control speed, direction, gap, play state and auto fill

demogif

Demo

Check out the demo here and play around with some sample marquees.

Installation

If you're using npm, in the command prompt run:

npm install svelte-fast-marquee --save

If you're using yarn, run:

yarn add svelte-fast-marquee

If you're using bun, run:

bun add svelte-fast-marquee

Compatibility

This package supports Svelte 3, 4, and 5.

svelte-fast-marquee declares svelte as a peer dependency, so your app should provide its own compatible svelte version.

Documentation

You can find the documentation here.

Usage

To use the component, first import Marquee into your file:

import Marquee from "svelte-fast-marquee";

Then wrap the <Marquee> tags around any component or text you'd like to slide.

<Marquee>
  I can be a Svelte component, multiple Svelte components, or just some text.
</Marquee>

A sample file might look like this:

<script>
    import MyComponent from '../components/MyComponent';
    import Marquee from 'svelte-fast-marquee';
</script>
<Marquee>
    <MyComponent />
    <MyComponent />
    <MyComponent />
</Marquee>

Examples

Logo wall

<script>
  import Marquee from 'svelte-fast-marquee';
</script>

<Marquee speed={40} pauseOnHover autoFill gap="3rem">
  <img src="/logo1.svg" alt="Logo 1" />
  <img src="/logo2.svg" alt="Logo 2" />
  <img src="/logo3.svg" alt="Logo 3" />
</Marquee>

News ticker with gradient fade

<Marquee direction="right" gradientColor="white" gradientWidth="15%">
  Breaking news · Product launch · New update ·
</Marquee>

Play / pause control

<script>
  import Marquee from 'svelte-fast-marquee';
  let playing = true;
</script>

<button on:click={() => (playing = !playing)}>
  {playing ? 'Pause' : 'Play'}
</button>

<Marquee play={playing} speed={80}>
  Pause me with the button above.
</Marquee>

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | play | boolean | true | Whether the marquee is animating. | | autoFill | boolean | false | Whether to repeat children enough times to fill empty space in the marquee. | | speed | number | 100 | Animation speed in pixels/second. | | direction | "left" \| "right" | "left" | Scroll direction. | | pauseOnHover | boolean | false | Pause the animation on hover. | | pauseOnClick | boolean | false | Pause the animation while pressed. | | gap | string | "0px" | Gap between elements (any CSS length). | | gradientColor | string | "" | Color of the edge fade. Setting it enables the gradient. | | gradientWidth | string | "" | Width of the edge fade (any CSS length, defaults to 10%). | | class | string | "" | Custom class for the container. | | style | string | "" | Inline styles for the container. |