텍스트 애니메이션

Word Reveal

스크롤로 뷰포트에 진입하면 단어들이 흐릿→선명, 아래→제자리로 순차 공개되는 텍스트 애니메이션. IntersectionObserver로 가시성을 감지하고, 컴포넌트 고유 keyframe(blur+translateY)과 단어별 지연으로 순차 등장 효과를 만든다. reduced-motion 시 즉시 표시하며 SSR에 안전하다.

분류
텍스트 애니메이션
난이도
medium
변형
TS-TW

설치

npx shadcn@latest add https://gasan.ai.kr/tools/effect/r/WordReveal-TS-TW

Props

이름타입기본값설명
textstring공개할 원문 텍스트 (aria-label로 제공).
staggernumber90단어 간 순차 지연(ms).
durationnumber0.7개별 단어 애니메이션 지속(초).
distancenumber24아래에서 올라오는 시작 오프셋(px).
thresholdnumber0.25IntersectionObserver 진입 임계값(0~1).
oncebooleantruetrue면 한 번만 공개, false면 재진입 시 다시 애니메이션.
classNamestringundefined컨테이너에 적용할 추가 클래스.