사용법
Design in MotionDesign in Motion
인터페이스
SplitTextRevealProps
| 속성 | 타입 | 기본값 | 설명 |
|---|---|---|---|
| text* | string | — | 표시 텍스트 |
| mode | "chars" | "words" | "lines" | chars | 분할 단위 |
| stagger | number | 28 | 유닛 간 지연(ms) |
| duration | number | 700 | 유닛 애니메이션(ms) |
| className | string | — | 루트 클래스 |
| style | CSSProperties | — | 인라인 스타일·CSS 변수 |
SplitTextReveal 컴포넌트 Props 표
가져오기
모션 CSS는 @goldtreedev/ui/motion.css를 함께 import해요.
@import "@goldtreedev/ui/motion.css";
import { SplitTextReveal } from "@goldtreedev/ui";