Ali Imam

Marquee

Component 136

About

Marquee, Scroll infinite

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Marquee to your project and fits it to your theme.

Code

How Marquee is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Marquee } from "@/components/ui/marquee";
import { Badge } from "@/components/ui/badge"

const technologies = [
  { name: "React", color: "bg-blue-500" },
  { name: "Next.js", color: "bg-black" },
  { name: "TypeScript", color: "bg-blue-600" },
  { name: "Tailwind CSS", color: "bg-cyan-500" },
  { name: "Framer Motion", color: "bg-pink-500" },
  { name: "Radix UI", color: "bg-green-500" },
  { name: "Lucide Icons", color: "bg-orange-500" },
  { name: "shadcn/ui", color: "bg-purple-500" },
]

export default function DemoOne() {
  return (
    <main>
      <Marquee>
        {technologies.map((tech, index) => (
          <Badge
            key={index}
            className={`${tech.color} rounded-md px-4 py-2 text-sm font-medium text-white`}
          >
            {tech.name}
          </Badge>
        ))}
      </Marquee>
      <Marquee reverse>
        {technologies.map((tech, index) => (
          <Badge
            key={index} 
            className={`${tech.color} rounded-md px-4 py-2 text-white`}
          >
            {tech.name}
          </Badge>
        ))}
      </Marquee>
       <Marquee speed="slow">
        {technologies.map((tech, index) => (
          <Badge key={index} className={`${tech.color} rounded-md px-4 py-2 text-white`}>
            {tech.name}
          </Badge>
        ))}
      </Marquee>
      <Marquee reverse speed="fast">
        {technologies.map((tech, index) => (
          <Badge key={index} className={`${tech.color} rounded-md px-4 py-2 text-white`}>
            {tech.name}
          </Badge>
        ))}
      </Marquee>
    </main>
  )
}

More by Ali Imam

View all
  • Liquid Glass Button

    Liquid Glass Button

    6.6K
  • Shader Animation

    Shader Animation

    3.7K
  • WebGL Shader

    WebGL Shader

    2.6K
  • Shader Lines

    Shader Lines

    2.3K
  • Shiny Button

    Shiny Button

    2.2K
  • GLSL Hills

    GLSL Hills

    2.1K
  • Canvas

    Canvas

    1.8K
  • Glowing Shadow

    Glowing Shadow

    1.5K