scroll-scrubbed-word-reveal
Qué hace
Esta skill permite que el scroll marque el ritmo de lectura de un titular, una cita o una declaración, con cada palabra apareciendo a su turno. Es para páginas editoriales y de marketing donde las palabras deben leerse a un ritmo constante.
Cuándo usarla
- ✓Cuando una cita o un manifiesto debe aparecer palabra por palabra según el lector hace scroll.
- ✓Cuando un párrafo tiene enlaces o énfasis que deben seguir funcionando durante la revelación.
- ✓Cuando quieres que el texto siga siendo legible en cualquier ancho de pantalla y con movimiento reducido.
Link de la skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/scroll-scrubbed-word-reveal/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que el titular de mi manifiesto aparezca palabra por palabra mientras la gente hace scroll, pero que los enlaces sigan funcionando.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente mantiene el texto original en la página, envuelve las palabras en spans sin romper los enlaces o el énfasis en línea, y asigna a cada palabra un valor de progreso según la posición del scroll. Las palabras se desvanecen y suben cuando ese valor las alcanza.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Rompe los enlaces dentro del texto?
No. La skill indica mantener intacto el marcado en línea, envolviendo solo las palabras.
¿Siguen los lectores de pantalla leyendo bien las palabras?
Sí. La skill mantiene una copia accesible del texto cuando las palabras se separan.
¿Divide el texto por líneas?
No. Evita dividir por líneas para que el texto pueda ajustarse de forma natural.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 7,2 mil
- Posición en el ranking
- #13464
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
3d-cloth-material
7,2 milAyuda a tu agente a crear tela tejida realista en Three.js, con el entramado del hilo, un brillo suave, pliegues naturales, dobladillos y costuras.
3d-falling-leaves
7,2 milAyuda a tu agente a añadir hojas que caen de forma realista a una escena 3D, con hojas que giran, se dejan llevar por el viento y se reciclan al moverse la cámara.
3d-four-seasons
7,2 milAyuda a tu agente a añadir los aspectos de primavera, verano, otoño e invierno a una escena 3D, cambiando la vegetación, la luz, el cielo y la nieve sin reconstruirla.
3d-high-poly-models
7,2 milAyuda a tu agente a construir modelos 3D detallados con formas suaves y bordes creíbles, y después preparar versiones más ligeras que funcionen bien en la web.
Skills parecidas
blender-motion-state-inspection
280 milPermite inspeccionar detalles de animaciones 3D. Es útil para revisar poses, movimientos y la alineación de los personajes en las animaciones.
manim-video
280 milPermite a tu agente crear vídeos animados explicativos. Usa Manim para generar gráficos y diagramas claros de conceptos técnicos.
remotion-video-creation
280 milGuía a tu agente para crear vídeos con React usando la biblioteca Remotion. Cubre buenas prácticas para animaciones, audio, subtítulos y otros elementos visuales.