Text Effects

Curved Text Marquee

곡선 경로를 따라 텍스트가 반복되고 드래그로 흐름을 제어할 수 있는 SVG 마키입니다.

Preview

text motion

Curved Text Marquee

curved marquee text

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong.dev/r/curved-loop.json

Code

typescript
Copied
1import { CurvedLoop } from "@/components/curved-loop"23export default function Example() {4  return (5    <CurvedLoop6      marqueeText="React Bits ✦ Curved Loop ✦ "7      speed={3}8      curveAmount={120}9      className="text-5xl font-semibold"10    />11  )12}

Props

PropTypeDefaultDescription
marqueeTextstring""Text repeated along the curve.
speednumber2Loop speed.
curveAmountnumber400Vertical curve intensity.
direction"left" | "right""left"Marquee direction.
interactivebooleantrueWhether drag controls speed and direction.
colorsreadonly string[]-Optional SVG gradient colors for the text.
classNamestring-Additional classes merged onto the component.

Reference

ReactBits Curved Text Marquee