Skill library

Agent skill Web motion

Shaders Cursor Ripples

Create a visual effect for a web page or interactive component.

  • Visual effects

Install the skill

Installation method

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 --yes

Check 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-ripples

    Select 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 manual

What 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

  1. Inspect inputs and rendering context
  2. Apply the documented technique
  3. 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.

  1. Inspect inputs and rendering context

    Inspect inputs and rendering context

    Prompt · Step 1
    Use 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.
  2. Apply the documented technique

    Apply the documented technique

    Prompt · Step 2
    Keep 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.
  3. 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 3
    Verify 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.