masked-reveal
MengTo/Skills · Agent Skill
Use when revealing content with masked motion, clipped transitions, or layered entrances.
Jump to install ↓Overview
| Publisher | |
|---|---|
| Repository | MengTo/Skills ↗ |
| Skill folder | masked-reveal |
| Stars | 7,038 |
| Forks | 819 |
| Bundled files | 5 |
| License | MIT |
| Last updated | October 25, 2026 |
| Links | Skill source ↗ · Repository ↗ |
Mozgi check
What we found in the skill files. Details come with a subscription.
Installation
A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.
Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.
Install the “masked-reveal” skill from mozgi.io (https://mozgi.io/skills/mengto-masked-reveal/) for me. 1. Download the archive: https://mozgi.io/skills/mengto-masked-reveal/download If it fails, take the skill folder from the source: https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/masked-reveal 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “masked-reveal” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/masked-reveal/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/MengTo/Skills.git /tmp/Skills mkdir -p .claude/skills cp -r /tmp/Skills/agent-skills/web-design/masked-reveal .claude/skills/masked-reveal
Restart Claude Code — the skill appears in the list; call it manually with /masked-reveal. For all projects use ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/MengTo/Skills.git /tmp/Skills mkdir -p .agents/skills cp -r /tmp/Skills/agent-skills/web-design/masked-reveal .agents/skills/masked-reveal
Codex looks for skills in .agents/skills from the current folder up to the repo root; call one with /skills or $masked-reveal. For all projects use ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/MengTo/Skills.git /tmp/Skills mkdir -p .cursor/skills cp -r /tmp/Skills/agent-skills/web-design/masked-reveal .cursor/skills/masked-reveal
Cursor picks the skill up on start; call it with “/” in Agent chat. Cursor also reads .claude/skills and .agents/skills. For all projects use ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/MengTo/Skills.git /tmp/Skills mkdir -p .gemini/skills cp -r /tmp/Skills/agent-skills/web-design/masked-reveal .gemini/skills/masked-reveal
Gemini CLI offers to activate the skill when a task matches — you approve it. For all projects use ~/.gemini/skills.
Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.
SKILL.md contents
Original author text · read-onlyMasked 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.
Frequently asked questions
What does the masked-reveal skill do?
Use when revealing content with masked motion, clipped transitions, or layered entrances.
How do I install masked-reveal?
Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.
Which AI models work with masked-reveal?
Skills are plain Markdown instructions (the Agent Skills format), so masked-reveal works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.
Is masked-reveal free?
The skill is published openly by MengTo under the MIT license. The skill itself costs nothing — you only pay your AI provider for the tokens you use.
Is it safe to install skills?
A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.
How is a skill different from an MCP server or a plugin?
An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.