Text Effects
Color Sweep Text
가로 색상 띠가 텍스트를 지나가며 그라데이션 빛을 드러내는 애니메이션입니다.
Preview
text motion
reveal letters with a color trail
Installation
bash
Copied
bash
Copied
bash
Copied
bash
Copied
Code
typescript
Copied
Props
text
- Type
- string | string[]
- Default
- -
- Description
- Text or rotating texts to reveal.
colors
- Type
- string[]
- Default
- built-in palette
- Description
- Sweep colors.
textColor
- Type
- string
- Default
- "var(--foreground)"
- Description
- Final text color.
duration
- Type
- number
- Default
- 1.5
- Description
- One sweep duration.
repeat
- Type
- boolean
- Default
- false
- Description
- Whether to repeat text cycling.
className
- Type
- string
- Default
- -
- Description
- Additional classes merged onto the component.