
Description
CSS Alpha Masking is an agent skill by Meng To for fading the edges of an element with a CSS mask built from a linear gradient. It handles horizontal fades on the left and right edges and vertical fades at the top and bottom. The agent first confirms the direction and the fade stop percentages, then provides an inline CSS snippet or class, and afterwards offers only small tweaks to direction, stop positions or colors. The checklist requires both mask-image and -webkit-mask-image so the fade also works in Safari, and reminds the agent that the element needs visible content because a mask only reveals or hides alpha. A typical example fades from transparent to black at 15 percent and back at 85 percent.…
Highlights
- Horizontal and vertical edge fades
- Includes -webkit-mask-image for Safari
- Inline CSS snippets or reusable classes
- Adjustable fade stop percentages
Ratings & Reviews
No ratings yet
Be the first to rate css-alpha-masking.
People also visit
css-alpha-masking FAQ
What does this skill produce?
A CSS snippet using mask-image with a linear gradient to fade an element's edges horizontally or vertically.
Does it work in Safari?
The skill always adds -webkit-mask-image alongside mask-image so the fade works in Safari.
Can I adjust the fade?
Yes. The agent confirms direction and stop percentages and can tweak direction, stop positions or colors afterwards.
What is the install command?
Install it with `npx skills add https://github.com/mengto/skills --skill css-alpha-masking`, which copies the skill from the mengto/skills GitHub repository into your agent setup.
What do the listed security audits show?
skills.sh shows Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best css-alpha-masking alternatives?
Popular alternatives to css-alpha-masking include css-border-gradient, progressive-blur and beautiful-shadows. See all css-alpha-masking alternatives




