Skill library

Agent skill Web motion

Beam Glow States

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/beam-glow-states --skill beam-glow-states --agent claude-code --yes

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

    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. React 18+ and border-beam. The current named export was checked with border-beam 1.4.1.

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

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

  1. Inspect inputs and rendering context

    Inspect inputs and rendering context

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

    Apply the documented technique

    Prompt · Step 2
    Import 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.
  3. 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 3
    Simulate 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.