Introducing Nuvyx UI v1.0.0

Docs
Marquee

Marquee

A customizable, interactive scrolling marquee component with various animation options, drag capabilities, and responsive design.

Marquee

React
Motion
React
Motion

Click or drag the marquee to interact with it

Installation

pnpm dlx shadcn@latest add "https://nuvyxui.vercel.app/r/marquee.json"
 

Examples

Horizontal Marquee

Reversed Marquee

Usage

import { Marquee } from "@/components/ui/marquee";
export default function MyComponent() {
  return (
    <Marquee>
      {/* Your marquee content goes here */}
      <div className="px-4">Content Item 1</div>
      <div className="px-4">Content Item 2</div>
      <div className="px-4">Content Item 3</div>
    </Marquee>
  );
}

Props

PropTypeDefaultDescription
childrenReact.ReactNodeundefinedContent to be displayed in the marquee
gapnumber16Space between repeated content in pixels
speednumber100Animation speed (higher is faster)
speedOnHovernumberundefinedAnimation speed when hovered (higher is faster)
direction"horizontal" | "vertical""horizontal"Scrolling direction
reversebooleanfalseReverse the animation direction
classNamestringundefinedAdditional CSS classes to apply
fadeEdgesbooleanfalseFade the edges of the marquee content
fadeWidthnumber64Width of the edge fade in pixels
pauseOnTapbooleantruePause animation when clicked
draggablebooleantrueAllow dragging interaction with the marquee