Agent skill Web motion
Beam Glow States
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/beam-glow-states --skill beam-glow-states --agent claude-code --yesCheck this file in your project.claude/skills/beam-glow-states/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/beam-glow-states --skill beam-glow-statesSelect 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 border-beam. The current named export was checked with border-beam 1.4.1.
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
- BorderBeam · size="line" · active · strength · staticColors
- Verification target
- The real button remains mounted and reports pending in both normal and reduced-motion modes.
- Skill name
beam-glow-states- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Conditionally swap the wrapped button for a new button on every request state.
Replacing the wrapper cuts off the fade and can reset the button’s focus.
Use these steps
- Inspect inputs and rendering context
- Apply the documented technique
- Verify on the actual project route
Project walkthrough
Attach one border beam to the lifecycle of a loading action while retaining normal control semantics.
Attach one border beam to the lifecycle of a loading action while retaining normal control semantics.
Inspect inputs and rendering context
Inspect inputs and rendering context
Prompt · Step 1Use Beam Glow States on [Save note control]. Check React and border-beam versions and identify idle, pending, success, and failure state. Record the current loading label, focus treatment, and button radius.Apply the documented technique
Apply the documented technique
Prompt · Step 2Import the named BorderBeam from border-beam. Keep one wrapper with size="line" around the real button and bind active to the pending state; choose a restrained strength. Keep the existing accessible pending indicator and use a visible static state for reduced motion. staticColors only stops hue shifting.Verify on the actual project route
The real button remains mounted and reports pending in both normal and reduced-motion modes.
- The real button remains mounted and reports pending in both normal and reduced-motion modes.
Prompt · Step 3Simulate a short request, a slower request, and a failure. Confirm the same mounted button keeps its focus and the beam fades according to pending. Test reduced motion and check that text still identifies loading without a traveling beam.
Implementation lookup
Check these values in your existing project and its installed dependencies.
Find the documented controlsInputs
- Command or reference
BorderBeam · size="line" · active · strength · staticColors- Examples
- The real button remains mounted and reports pending in both normal and reduced-motion modes.
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 real button remains mounted and reports pending in both normal and reduced-motion modes.