scroll-scrubbed-word-reveal
하는 일
이 스킬은 스크롤로 제목, 인용문, 문장의 읽는 속도를 조절해서 단어가 차례로 나타나게 합니다. 일정한 속도로 읽혀야 하는 편집형 및 마케팅 페이지를 위한 것입니다.
사용하는 경우
- ✓인용문이나 선언문이 독자가 스크롤할 때 단어별로 나타나야 할 때.
- ✓문단에 링크나 강조 표시가 있어서 드러나는 동안에도 계속 작동해야 할 때.
- ✓화면 너비와 상관없이, 그리고 동작 줄이기 설정에서도 텍스트가 읽기 쉬워야 할 때.
스킬 링크
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/scroll-scrubbed-word-reveal/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“선언문의 제목이 사람들이 스크롤할 때 단어별로 나타나게 해 주세요. 단, 링크는 계속 작동해야 합니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 원래 텍스트를 페이지에 그대로 두고, 링크나 강조를 깨뜨리지 않도록 단어만 span으로 감쌉니다. 각 단어의 진행 값은 스크롤 위치로 정해지며, 그 값이 단어를 지나면 단어가 나타나며 올라옵니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Scroll-Scrubbed Word Reveal
Make reading progress visible without replacing real text, breaking inline markup, or depending on a fixed line count.
Prepare the text
- Keep one untouched accessible text source in the DOM.
- Walk text nodes with
TreeWalker; do not flatten the container withtextContentorinnerHTML. - Skip
script,style, form controls, and elements marked with[data-no-split]. - Replace only non-whitespace tokens with spans and preserve whitespace nodes exactly.
- Mark generated spans
aria-hidden="true"only when an equivalent unsplit accessible copy remains available.
Preferred structure:
<p class="reveal" data-reveal>
Motion should <em>explain</em> the next state, not decorate it.
</p>
Avoid line-based splitting. Browser line wraps must remain free to change with container width, language, zoom, and font loading.
Map scroll to words
Use section progress as the single source of truth:
const reveal = Math.min(1, Math.max(0, progress));
const local = Math.min(1, Math.max(0, reveal * wordCount - index));
word.style.setProperty("--word-progress", local);
Interpolate hidden opacity, blur, and vertical offset from --word-progress. Keep the visible state identical to normal typography.
Use GSAP ScrollTrigger with scrub when precise starts, ends, refresh, or a shared timeline is needed. Use a dependency-free scroll measurement plus requestAnimationFrame for a standalone section.
Set useful defaults
- Hidden opacity:
0.12–0.3 - Blur:
4–10px - Vertical offset:
0.08–0.22em - Reveal span:
120–220%of the viewport for a paragraph - Direct word overlap:
10–30% - Easing: none for the scroll mapping; ease only the visual interpolation when needed
Expose the values as CSS custom properties. Scale the scroll span from text length rather than assuming one duration fits every passage.
Preserve emphasis
- Let links,
strong,em, marks, and accent spans keep their semantics and styling. - Use inherited color by default; style accents on the original element, not on token indexes.
- Do not reveal essential links only on hover or after the reader has passed them.
- Re-split only when the source text changes. Responsive wrapping does not require rebuilding tokens.
- Store enough state to restore the original DOM during cleanup.
Keep it readable
- Use real document flow; pin only when the copy and evidence justify a short deliberate reading beat.
- Do not use a typewriter cursor, random delays, or autoplay unless explicitly requested.
- Under
prefers-reduced-motion: reduce, show every word immediately, remove blur and transforms, and remove any pinning. - Keep screen-reader output natural and avoid announcing each word.
- Verify contrast in both the hidden and final states; hidden words may be quiet but the final text must meet the normal reading contract.
Clean up
Kill ScrollTriggers, remove scroll and resize listeners, cancel animation frames, and restore the original marked-up subtree on route change or component unmount. Refresh measurements after fonts load if start or end positions depend on text geometry.
Verify
Test inline links and emphasis, punctuation, repeated spaces, long words, 200% zoom, 390/768/1440 widths, content changes, forward and reverse scrolling, reduced motion, keyboard focus, screen-reader reading order, and teardown. The final DOM must still communicate the complete sentence with JavaScript disabled.
Use demo/index.html as the working reference and demo/PROMPT.md to recreate or remix it. Keep REFERENCES.md as the links-only implementation source list.
자주 묻는 질문
텍스트 안의 링크가 깨지나요?
아니요. 스킬은 단어 자체만 감싸서 인라인 마크업을 그대로 유지하라고 말합니다.
스크린 리더가 단어를 읽을 수 있나요?
네. 단어를 나눌 때도 접근 가능한 텍스트 사본을 유지합니다.
줄 단위로 나누나요?
아니요. 텍스트가 자연스럽게 줄바꿈되도록 줄 단위 분할은 피합니다.
상세 정보
작성자의 원본 설명
Reveal marked-up text word by word as scroll progress advances, while preserving semantic inline links, emphasis, responsive line wrapping, and reduced-motion readability. Use for headlines, quotes, manifestos, product statements, onboarding messages, or editorial passages where scrolling should pace comprehension rather than simulate typing.
repo: MengTo/Skills
인기도
- GitHub 스타
- 7.2k
- 순위
- #13464
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
3d-cloth-material
7.2k에이전트가 Three.js에서 실 짜임, 부드러운 광택, 자연스러운 주름, 단, 솔기를 갖춘 실제 직물처럼 보이는 천을 만들도록 돕습니다.
3d-falling-leaves
7.2k에이전트가 3D 장면에 나뭇잎이 구르고 바람에 흩날리며 카메라 움직임에 따라 재사용되는 낙엽 효과를 추가하도록 돕습니다.
3d-four-seasons
7.2k에이전트가 3D 장면의 나무, 빛, 하늘, 눈을 바꿔 장면을 다시 만들지 않고 봄, 여름, 가을, 겨울을 표현하도록 돕습니다.
3d-high-poly-models
7.2k에이전트가 매끄러운 형태와 자연스러운 모서리를 가진 세밀한 3D 모델을 만들고, 웹에서 잘 돌아가는 가벼운 버전을 준비하도록 돕습니다.
비슷한 스킬
blender-motion-state-inspection
280k3D 애니메이션의 포즈, 움직임, 캐릭터 정렬 같은 세부 사항을 점검하도록 돕습니다.
manim-video
280k애니메이션 설명 영상을 에이전트가 만들도록 돕습니다. Manim을 사용해 기술 개념을 설명하는 명확한 그래프와 도표를 만듭니다.
remotion-video-creation
280kReact와 Remotion 라이브러리로 영상을 만드는 과정을 에이전트에게 안내합니다. 애니메이션, 오디오, 자막 등 시각 요소의 모범 사례를 다룹니다.