MengTo / Skills
progressive-blur
Use when applying blur transitions or layered depth effects that need to feel smooth and controlled.
Install
npx skills add https://github.com/MengTo/Skills --skill progressive-blurProgressive Blur Skill
Workflow
- Confirm placement (top or bottom), height, and z-index relative to UI.
- Provide the matching snippet and a short usage checklist.
- Offer only targeted tweaks (height, blur steps, direction, opacity stops).
Usage checklist
- Insert the HTML inside
<body>. - Keep the
.gradient-blurelement near the top of the DOM. - Ensure the background behind it exists (backdrop-filter blurs what is behind).
- Adjust
z-indexto sit above content but below modals.
Top blur (from top)
Bottom blur (from bottom)
Customization knobs
- Direction: flip
to top↔to bottom. - Height: adjust
.gradient-blurheight percentage. - Strength: change blur values (0.5px → 64px).
- Steps: add/remove layers to control smoothness.
Common pitfalls
backdrop-filterneeds content behind it; it will not blur a flat background.- High blur values are GPU-heavy; reduce steps on low-end devices.
- Ensure
pointer-events: nonestays to avoid blocking clicks.
Questions to ask when specs are missing
- Should the blur start from the top or bottom?
- How tall should the blur area be?
- Is performance a concern on lower-end devices?