Skip to content
OTF Kit logoOTF Kit

Marquee

Display

Infinite-scrolling row of children — logos, testimonials, badges. Pure CSS, fade edges, pause-on-hover.

View in Storybook
Marquee
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import Marquee from @otfdashkit/ui.

Code
// Marquee — Infinite-scrolling row of children — logos, testimonials, badges. Pure CSS, fade edges, pause-on-hover.
//
// Install:
//   bun add @otfdashkit/ui

import { Marquee } from '@otfdashkit/ui'

export function Example() {
  return (
    <Marquee>
      {/* your content */}
    </Marquee>
  )
}

Props

Props declared in the Marquee source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
childrenrequiredReactNodeChildren rendered inside the scrolling track. Cloned once internally for a seamless loop.
direction'left' | 'right''left'Scroll direction.
fadebooleantrueSoft fade mask at left + right edges.
gapstring'gap-8'Gap between items, e.g. 'gap-4', 'gap-8'. Default 'gap-8'.
pauseOnHoverbooleantruePause animation on hover.
speed'slow' | 'normal' | 'fast''normal'Animation speed.

Related