v1.4.0Vue 3 · Nuxt · Tailwind v4

Vue Marquee

A Beautiful Marquee component for Vue 3.

pnpm add @selemondev/vue3-marquee
Selemondev
Senior Frontend Engineer

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 Engineer

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 Engineer

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 Engineer

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.vue into your project.

    pnpm add @selemondev/vue3-marquee
  2. 02

    Import the component

    Import the stylesheet once, then use the component locally, register it globally, or add it as a Nuxt plugin.

    <script setup lang="ts">
    import { Marquee } from "@selemondev/vue3-marquee";
    import "@selemondev/vue3-marquee/style.css";
    </script>
    
    <template>
      <Marquee fade pauseOnHover>
        <img src="/logos/acme.svg" alt="Acme" />
        <img src="/logos/globex.svg" alt="Globex" />
        <img src="/logos/initech.svg" alt="Initech" />
      </Marquee>
    </template>

Examples

fade

Fade

Masks both edges of the marquee with a gradient.

Selemondev
Senior Frontend Engineer

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 Engineer

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.

<Marquee fade>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>
reverse

Reverse

Plays the animation in the opposite direction.

Selemondev
Senior Frontend Engineer

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 Engineer

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.

<Marquee reverse fade>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>
pauseOnHover

Pause on hover

Pauses the animation while the pointer is over the marquee.

Selemondev
Senior Frontend Engineer

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 Engineer

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.

<Marquee pauseOnHover fade>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>
direction="up"

Vertical

Scrolls vertically. The container needs a fixed height.

Selemondev
Senior Frontend Engineer

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 Engineer

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.

<Marquee class="h-100" direction="up" fade>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>
--duration · --gap

Custom gap and speed

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

googlemicrosoftappleoraclevuejsgithubvercelstripe
googlemicrosoftappleoraclevuejsgithubvercelstripe
<Marquee
  class="gap-12 [--duration:12s] [--gap:3rem]"
  innerClassName="gap-12"
  fade
>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>
prefers-reduced-motion

Reduced motion

Disables the animation when the device prefers reduced motion.

Selemondev
Senior Frontend Engineer

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 Engineer

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.

<Marquee
  class="py-4 motion-reduce:overflow-auto"
  innerClassName="motion-reduce:animate-none motion-reduce:first:hidden"
>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
</Marquee>

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.