Toggle spring

From nexu-io/motion-anything · View interactive version

Toggle spring is an AI agent skill from the GitHub repository nexu-io/motion-anything. A switch whose knob springs across on toggle — a tactile, satisfying on/off state change. Use for settings/form switches. Honors prefers-reduced-motion (quick linear slide). Trigger on user intent only; keep the spring subtle — never to convey loading/progress.

How to use this skill

Skill file

toggle-spring

A switch whose knob springs across on toggle. Part of

motion-anything; obeys MOTION-SPEC.md.

When to use it

When NOT to use it (restraint)

How to apply

  1. Copy toggle-spring.css and toggle-spring.js and link them.
  2. Markup: <button class="ms-toggle" data-toggle aria-pressed="false"><span class="knob"></span></button>.

Accessibility & performance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.