BaseMarquee

A row that scrolls sideways without end: logos, testimonials, a ticker.

Import it from rei-kit/motion: import { BaseMarquee } from 'rei-kit/motion'

Open BaseMarquee in the live documentation, where every prop below is a control you can change, in four materials and ten palettes.

Usage

<script setup lang="ts">
import { BaseBadge } from 'rei-kit'
import { BaseMarquee } from 'rei-kit/motion'

const names = ['Nord', 'Dracula', 'Catppuccin', 'Gruvbox']
</script>

<template>
  <BaseMarquee :duration="40">
    <BaseBadge v-for="name in names" :key="name">{{ name }}</BaseBadge>
  </BaseMarquee>
</template>

Props

Props
PropTypeRequired or defaultWhat it is for
durationnumber30Seconds for one full pass. Longer is slower; the speed does not change with the content's length.
reversebooleanfalseMove left to right instead.
pausedbooleanfalseHolds it still.
fadebooleantrueFade the content out at both edges instead of cutting it.
gapstring'2rem'Space between items, and between the end of one pass and the start of the next. Any CSS length.

About rei-kit

rei-kit is an accessible Vue 3 and Tailwind CSS 4 component library: 106 components, themed by role rather than by colour on three independent axes — ten WCAG-checked palettes, four materials and light or dark, each switched with one attribute. Typed, tested, SSR-safe, no runtime dependencies, MIT.

pnpm add rei-kit · npm · GitHub