Masked Reveal
Meng ToCommunityCreated by Meng To
- Skill
- Tool integration
- Software development
- MIT
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a lightweight, dependency-conscious approach to animating text reveals using GSAP and ScrollTrigger. By programmatically splitting text into word-based spans with overflow masking, it achieves a premium editorial motion effect without requiring paid plugins. The implementation includes accessibility considerations, such as preserving the original text for screen readers, and respects user preferences for reduced motion.
What it does
- Splits text content into individual word elements wrapped in overflow-hidden masks.
- Uses GSAP ScrollTrigger to initiate animations as elements enter the viewport.
- Applies a staggered vertical slide-up effect to each word.
- Ensures accessibility by maintaining the original text structure for screen readers.
- Provides a clean cleanup pattern for React environments.
- Includes a fallback mechanism for users with reduced motion preferences.
When to use it
- When you need a high-end, editorial-style reveal for hero copy or section titles.
- When you want to avoid the overhead or cost of external text-splitting plugins.
- When building scroll-driven interactions that require precise control over animation timing.
- When you need to ensure animations are accessible and performant across different devices.
Advantages
- Lightweight implementation that avoids external dependencies like SplitText.
- Maintains semantic integrity and accessibility for screen readers.
- Includes built-in support for reduced-motion accessibility standards.
- Provides a robust cleanup pattern for modern SPA frameworks like React.
- Preserves original spacing between words during the animation process.
Usage examples
- “How do I implement a staggered reveal for my hero headline?”
- The agent provides the HTML structure, CSS mask styles, and the GSAP initialization function to trigger the animation on scroll.
- “How can I ensure this text animation works in my React application?”
- The agent provides a React-specific cleanup pattern using useLayoutEffect and gsap.context to prevent memory leaks during component unmounting.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/mengto/masked-reveal/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip masked-reveal.zip -d .agents/skills
Documentation by Meng To
Masked Reveal
Use When
A headline or short text block needs a premium reveal on scroll.
Words should rise through an invisible mask with a staggered sequence.
The project already uses GSAP or needs ScrollTrigger-based motion.
Motion Defaults
Trigger: start when the text top reaches
82%of the viewport.Duration:
0.7sto0.9s.Stagger:
0.025sto0.045sper word.Offset:
yPercent: 110to0.Ease:
power3.outorexpo.out.Replay: reveal once by default.
HTML
<h1 class="masked-reveal" data-masked-reveal>
Design systems that feel alive from the first scroll.
</h1>CSS Mask
.masked-reveal {
visibility: visible;
}
html.js .masked-reveal[data-masked-reveal] {
visibility: hidden;
}
html.js .masked-reveal.is-split {
visibility: visible;
}
.masked-reveal .word-mask {
display: inline-block;
overflow: hidden;
vertical-align: top;
}
.masked-reveal .word {
display: inline-block;
transform: translateY(110%);
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
html.js .masked-reveal[data-masked-reveal] {
visibility: visible;
}
.masked-reveal .word {
transform: none;
}
}GSAP ScrollTrigger
This helper avoids the paid SplitText plugin and keeps spaces intact.
document.documentElement.classList.add("js");
gsap.registerPlugin(ScrollTrigger);
function escapeHTML(value) {
return value
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">")
.replace(/"/g, """)
.replace(/'/g, "'");
}
function splitMaskedReveal(element) {
if (element.dataset.maskedRevealReady === "true") return;
const text = element.textContent.trim();
element.setAttribute("aria-label", text);
element.innerHTML = text
.split(/(\s+)/)
.map((part) => {
if (!part.trim()) return part;
return `<span class="word-mask" aria-hidden="true"><span class="word">${escapeHTML(part)}</span></span>`;
})
.join("");
element.dataset.maskedRevealReady = "true";
element.classList.add("is-split");
}
function initMaskedReveals(selector = "[data-masked-reveal]") {
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
document.querySelectorAll(selector).forEach((element) => {
splitMaskedReveal(element);
const words = element.querySelectorAll(".word");
gsap.set(element, { autoAlpha: 1 });
gsap.fromTo(
words,
{ yPercent: 110 },
{
yPercent: 0,
duration: 0.8,
ease: "power3.out",
stagger: 0.035,
scrollTrigger: {
trigger: element,
start: "top 82%",
once: true,
},
}
);
});
}
initMaskedReveals();React Cleanup Pattern
useLayoutEffect(() => {
const ctx = gsap.context(() => {
initMaskedReveals("[data-masked-reveal]");
}, rootRef);
return () => ctx.revert();
}, []);Taste Rules
Use on short headlines, labels, and section intros; avoid long paragraphs.
Keep the vertical offset clean. Do not combine with blur unless the style explicitly calls for it.
Stagger by word, not letter, for a calmer editorial feel.
Initialize after fonts are loaded if line wrapping is critical.
Use
ScrollTrigger.refresh()after late-loading images or layout shifts.Do not split text that contains links, buttons, or meaningful inline markup.
Quick Checks
Text is hidden before GSAP initializes, then becomes visible with
autoAlpha: 1.Screen readers get the original full text through
aria-label.Spaces between words are preserved.
Reduced-motion users see static text.
ScrollTrigger is cleaned up in SPA routes.
Files
- ATTRIBUTION.mdAdded by AutoGineer848 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md3.9 KiB
- demo/PROMPT.md2.5 KiB
- demo/assets/page-01-65695f80-23f9-46ee-8487-cbb6c93cc48b-3840w.webp523.8 KiB
- demo/assets/page-02-724142aa-44a6-48d3-9cf3-761e00d05b78-1600w.jpg966.2 KiB
- demo/assets/page-03-4734259a-bad7-422f-981e-ce01e79184f2-1600w.jpg43.7 KiB
- demo/assets/page-04-005600e5-f6ab-4e59-bc86-eaeb02797dfa-1600w.jpg711.5 KiB
- demo/assets/page-05-e534354d-c5f2-4399-a1d9-2f50338e8c47-1600w.jpg83.3 KiB
- demo/assets/page-06-fb6415fd-bf4d-4ccf-8e9d-7ab445e99207-1600w.jpg197.2 KiB
- demo/assets/source-preview.jpg136.3 KiB
- demo/index.html44.4 KiB
- demo/preview.jpg95.8 KiB
- demo/source.json4.4 KiB
demo/PROMPT.md
Masked Reveal Demo Prompts
Minimal prompt
Use $masked-reveal to create a responsive standalone HTML design with the same visual confidence, hierarchy, and interaction finish as the included Neuform reference.
Recreate the demo
Use $masked-reveal to recreate the design quality and behavior of Kiwi Floral | Artisan Botanical Design as a complete responsive HTML document. Treat the included demo/index.html as the visual and interaction reference, not as a loose mood board.
Product brief
Page concept: Kiwi Floral | Artisan Botanical Design.
Purpose: Kiwi Floral Login Section is designed for authenticating users through a focused access flow. Key features include reusable structure, responsive behavior, and production-ready presentation. It is suitable for authentication screens in web products.
Content anchors: Artisan Floristry for Meaningful Moments · Engineered Botanical Elegance. · Sustainable Sourcing · Technical Parameters · Curated Arrangements.
Useful subject tags: login, animated, webgl, threejs, input, validation, effect, security.
Skill direction
Create masked staggered word reveal on scroll with GSAP ScrollTrigger.
Fidelity target
Match the reference's composition, information density, type scale, spacing rhythm, surface treatment, color relationships, and motion restraint.
Preserve the strongest interaction and animated background behavior instead of replacing it with generic fades or decorative movement.
Keep the first screen art-directed, then carry the same design logic through every supporting section.
Make the result responsive from mobile to desktop, keyboard accessible, and stable when reduced motion is enabled.
Deliver a full index.html. Put page-owned images, video, models, and textures in demo/assets/. External runtime libraries may stay as pinned CDN dependencies when the source relies on them.
Reference snapshot
Source: https://neuform.ai/pages/kiwi-floral-artisan-botanical-design-1/index.html
Neuform rank: #1 for masked-reveal when synced.
Popularity: 2,154 views · 47 favorites · 27 remixes.
Ranking rule: views descending, then favorites descending.
Remix prompt
Use $masked-reveal and the included Neuform demo as the quality bar, but replace the brand, subject, copy, palette, and content. Preserve the underlying layout logic, signature visual treatment, interaction choreography, responsive behavior, and performance constraints so the remix still clearly demonstrates the skill.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Meng To
- Publisher
- Meng To (Community)
- Source
- MengTo/Skills · agent-skills/web-design/masked-reveal · commit 5ea1661
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Meng To or Meng To.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download masked-reveal.zip