Skill library

Agent skill Web motion

Micro Interaction

Make interface behavior and feedback feel clear and intentional.

  • Microinteractions
  • Interaction design
  • Animation

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add iart-ai/web-animation-skills --skill micro-interaction --agent claude-code --yes

Check this file in your project.claude/skills/micro-interaction/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add iart-ai/web-animation-skills --skill micro-interaction

    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. Use a browser, a local preview and one reproducible example. Verify dependencies for the selected animation driver.

View operation manual

What this skill helps with

  • Make interface behavior and feedback feel clear and intentional.

Good for

  • Interaction and feedback
Inputs
A button, toggle or disclosure with its accessible behavior
Example
Standalone HTML with a seekable time or state.
Preview query example
?state=open
Skill name
micro-interaction

Make one state reproducible before integration

Vague request

Give the page a nice animation.

It gives the assistant no trigger, target state or acceptance check.

A scoped example

  1. Verify one control through its real states
  2. A button, toggle or disclosure with its accessible behavior

Micro Interaction operation manual

Verify one control through its real states

A button, toggle or disclosure with its accessible behavior

  1. Define what the fixture should prove

    A button, toggle or disclosure with its accessible behavior

    Prompt · Step 1
    Use iArt’s micro-interaction in [Local preview directory]. Read the installed SKILL.md and the relevant bundled references. For [Target effect], prepare A button, toggle or disclosure with its accessible behavior. Confirm the browser and project constraints and outline one small acceptance fixture.
  2. Build a standalone preview

    A button, toggle or disclosure with its accessible behavior

    Prompt · Step 2
    Use iArt’s micro-interaction in [Local preview directory]. For [Control], build the smallest HTML fixture covering idle, press and [Meaningful end state]. Use accessible native controls where possible. Add ?state= to open a known settled state for visual comparison.
  3. Verify it in the browser

    Open the settled state directly and repeat using the real click and keyboard paths. Verify the displayed label, focus and underlying state agree after rapid toggles.

    Prompt · Step 3
    Use iArt’s micro-interaction in [Local preview directory]. Open the settled state directly and repeat using the real click and keyboard paths. Verify the displayed label, focus and underlying state agree after rapid toggles.

Look up a specific preview issue

Check that the example is in the intended state before comparing it.

Open a known time or state?state=open
Command or reference
Preview URL query
Examples
For [Control], build the smallest HTML fixture covering idle, press and [Meaningful end state]. Use accessible native controls where possible. Add ?state= to open a known settled state for visual comparison.
Check the resultBrowser
Command or reference
Verify one control through its real states
Examples
Open the settled state directly and repeat using the real click and keyboard paths. Verify the displayed label, focus and underlying state agree after rapid toggles.

Troubleshooting and FAQ

What if the screenshot helper is absent after installation?

Open the chosen time or state in the local preview and take screenshots in the browser. Check the publisher repository if you want its optional helpers.

How do I judge the finished result?

Open the settled state directly and repeat using the real click and keyboard paths. Verify the displayed label, focus and underlying state agree after rapid toggles.