Agent skill Web motion
Liquid Metal Border
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/liquid-metal-border --skill liquid-metal-border --agent claude-code --yesCheck this file in your project.claude/skills/liquid-metal-border/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/liquid-metal-border --skill liquid-metal-borderSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. React 18+ and metal-fx. Named component, fallback rendering, and public props were checked against metal-fx 2.0.11.
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
- MetalFx · ringCssPx · paused · normalizeHostStyles
- Verification target
- The ring fits the real control and the original focus and interaction work with the fallback.
- Skill name
liquid-metal-border- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Wrap the whole page in an always-active metal shader and remove the existing focus ring.
The effect can dominate the action and the control still needs a focus indicator and fallback.
Use these steps
- Inspect inputs and rendering context
- Apply the documented technique
- Verify on the actual project route
Project walkthrough
Add a narrow metal ring to one control and retain a reliable static border and focus outline.
Add a narrow metal ring to one control and retain a reliable static border and focus outline.
Inspect inputs and rendering context
Inspect inputs and rendering context
Prompt · Step 1Use Liquid Metal Border on [Add marker button]. Measure the actual button size and border radius. Identify which background and native focus style must remain, and check the resolved metal-fx version.Apply the documented technique
Apply the documented technique
Prompt · Step 2Import MetalFx from metal-fx and wrap the existing button once. Start with preset="silver", ringCssPx={1}, and disableGlow. Use normalizeHostStyles={false} to preserve the custom focus outline, and set paused for reduced motion or render the static fallback. Keep the semantic button and handlers.Verify on the actual project route
The ring fits the real control and the original focus and interaction work with the fallback.
- The ring fits the real control and the original focus and interaction work with the fallback.
Prompt · Step 3Resize the control, tab to it, and check its radius, focus indicator, and click. Verify a reduced-motion still and compare a WebGL-disabled or server-rendered fallback before tuning ring strength.
Implementation lookup
Check these values in your existing project and its installed dependencies.
Find the documented controlsInputs
- Command or reference
MetalFx · ringCssPx · paused · normalizeHostStyles- Examples
- The ring fits the real control and the original focus and interaction work with the fallback.
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 ring fits the real control and the original focus and interaction work with the fallback.