Marquee

Animated

A looping strip that moves only when content overflows.

Source
$npx @dinachi/cli@latest add marquee
VercelLinearSupabaseResendClerkNeonCal.comRaycast
duration
direction
pauseOnHover
fade

Usage

import { Marquee } from "@/components/ui/marquee"

const logos = ["Vercel", "Linear", "Supabase", "Resend"]

export function Logos() {
  return (
    <Marquee>
      {logos.map((name) => (
        <span key={name}>{name}</span>
      ))}
    </Marquee>
  )
}

Examples

VercelLinearSupabaseResendClerkNeonCal.comRaycast
A seamless loop that brakes on hover.
import { Marquee } from '@/components/ui/marquee';

const logos = ['Vercel', 'Linear', 'Supabase', 'Resend', 'Clerk', 'Neon'];

export function Example() {
  return (
    <Marquee className="py-2">
      {logos.map((name) => (
        <span
          key={name}
          className="whitespace-nowrap px-5 text-lg font-semibold text-muted-foreground"
        >
          {name}
        </span>
      ))}
    </Marquee>
  );
}

Notes

Motion tier

Needs motion. add --all skips it; install with add --motion or by name.

Behaviour

  • Content narrower than the container stays still; no prop turns the loop off.
  • Stops while out of view, hovered or focused.
  • Pausing eases out over 160ms; resuming takes 240ms.
  • Touch does not trigger the hover pause.
  • Resizes and prop changes keep its place in the loop.

API

durationnumber = 24
Seconds for one full pass of the content.
direction"left" | "right" = "left"
Which way the strip travels.
pauseOnHoverboolean = true
Pauses while hovered. Focus always pauses it.
fadeboolean = true
Fades the leading and trailing edges while the strip moves.
labelstring = "Scrolling content"
Names the strip when reduced motion makes it a scroller.

Accessibility

  • The duplicate copy is aria-hidden and inert: not announced, not reachable by Tab.
  • Focus pauses the strip regardless of pauseOnHover.
  • Reduced motion makes it a focusable scroller, role region, named by label.