Marquee

Seamless infinite scroll strip. Clones direct children until the track fills the container at least twice, then loops via GSAP modifiers. Optional drag-with-inertia.

GSAPScrollTriggerSplitTextFlipObserverInertiaDraggableMorphSVGDrawSVGMotionPath

Usage

import { Marquee } from '@bwo-ui/react';

<Marquee speed={120} direction="left" draggable>
  <span>One</span>
  <span>Two</span>
  <span>Three</span>
</Marquee>

Props

PropTypeDefaultDescription
speednumber80Pixels per second.
direction'left' | 'right' | 'up' | 'down''left'Scroll direction.
draggablebooleantrueAllow user to drag/throw the strip.
pauseOnHoverbooleantruePause when the cursor is over the strip.
itemSelectorstring':scope > *'Selector for items inside the container.

Notes