Agent skill Web motion
Shaders Cursor Ripples
Create a visual effect for a web page or interactive component.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/shaders-cursor-ripples --skill shaders-cursor-ripples --agent claude-code --yesCheck this file in your project.claude/skills/shaders-cursor-ripples/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/shaders-cursor-ripples --skill shaders-cursor-ripplesSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A React hero, a licensed image and sizes, and the shaders package. The component exports were checked in shaders 5.0.0; the effect itself needs a matching WebGPU browser.
View operation manualWhat this skill helps with
- Create a visual effect for a web page or interactive component.
Good for
- Interactive visual effects
- Publisher
- Meng To
- Control points
- Shader · ImageTexture · CursorRipples · onReady
- Verification target
- The original image bends with pointer motion, and the matching semantic image survives failure or reduced motion.
- Skill name
shaders-cursor-ripples- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Remove the static image as soon as navigator.gpu exists.
A browser can expose WebGPU and still fail to initialize the shader or load the texture.
Use these steps
- Inspect inputs and rendering context
- Apply the documented technique
- Verify on the actual project route
Project walkthrough
Add pointer ripples to an approved hero image while keeping the semantic image visible during loading or failure.
Add pointer ripples to an approved hero image while keeping the semantic image visible during loading or failure.
Inspect inputs and rendering context
Inspect inputs and rendering context
Prompt · Step 1Use Shaders Cursor Ripples on [original botanical hero]. Choose the authorized image, alt text and intrinsic dimensions. Inspect the installed assets/react/cursor-ripple-shader.tsx and CSS and record the current hero layering.Apply the documented technique
Apply the documented technique
Prompt · Step 2Keep the real image first, use a client-only lazy overlay with Shader toneMapping="aces", ImageTexture objectFit="cover", and CursorRipples decay={7.3} radius={0.6} in that order. Mount only when motion is allowed and WebGPU is available. Retain the fallback until the overlay reports ready, and keep text and buttons above it.Verify on the actual project route
The original image bends with pointer motion, and the matching semantic image survives failure or reduced motion.
- The original image bends with pointer motion, and the matching semantic image survives failure or reduced motion.
Prompt · Step 3Verify pointer movement bends the same art in a WebGPU browser. Block the asset or shader load in a local test and emulate reduced motion. Confirm the fallback preserves its crop and dimensions, remains readable, and never captures input from the CTA.
Implementation lookup
Check these values in your existing project and its installed dependencies.
Find the documented controlsInputs
- Command or reference
Shader · ImageTexture · CursorRipples · onReady- Examples
- The original image bends with pointer motion, and the matching semantic image survives failure or reduced motion.
FAQ
What should I open after installing?
Open SKILL.md and REFERENCES.md in the installed skill directory. Apply the technique to your own scene or component and verify the specified result on that route.
How do I show the result is ready?
The original image bends with pointer motion, and the matching semantic image survives failure or reduced motion.