v0.1.5 Svelte 5 · Tailwind v4

Svelte Marquee

A Beautiful Marquee component for Svelte.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Installation

  1. 01

    Install the package

    Or copy Marquee.svelte into your project.

  2. 02

    Import the component

    Import the stylesheet once, then use the component.

Examples

fade

Fade

Masks both edges of the marquee with a gradient.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

reverse

Reverse

Plays the animation in the opposite direction.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

pauseOnHover

Pause on hover

Pauses the animation while the pointer is over the marquee.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

direction="up"

Vertical

Scrolls vertically. The container needs a fixed height.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

--duration · --gap

Custom gap and speed

Set --duration and --gap on the container to change speed and spacing.

googlemicrosoftappleoraclereactjsgithubvercelstripe
googlemicrosoftappleoraclereactjsgithubvercelstripe
prefers-reduced-motion

Reduced motion

Disables the animation when the device prefers reduced motion.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

Selemondev
Senior Frontend Developer

Marquee Library has been a game-changer for our TypeScript projects. Its seamless integration and robust features have significantly improved our UI's dynamic capabilities.

Raj Patel
Tech Lead

I'm thoroughly impressed with Marquee's performance and ease of use. It made implementing complex scrolling texts a breeze, and the support for TypeScript is top-notch.

Sofia Garcia
UI/UX Designer

As a designer, I appreciate how Marquee enhances the visual appeal of our applications. The flexibility it offers in styling and animation is fantastic.

John Mack
Full Stack Developer

Integrating Marquee into our full-stack TypeScript projects has been incredibly efficient. Its compatibility and ease of customization are ideal for our diverse project needs.

Isabella Smith
Project Manager

Marquee Library has consistently delivered beyond our expectations. It's not just a tool; it's an asset that enhances productivity and creativity in our TypeScript applications.

API

Props

Other attributes are forwarded to the outer container.

PropTypeDefaultDescription
direction"left" | "up""left"Axis the content travels along.
reversebooleanfalsePlay the animation backwards.
fadebooleanfalseMask both edges with a soft gradient.
pauseOnHoverbooleanfalseFreeze the track while the pointer is over it.
numberOfCopiesnumber2How many times the children are repeated to fill the track.
innerClassNamestring""Classes applied to each scrolling track.
classstring""Classes for the outer container. Set --duration and --gap here.