micro-interactions

micro-interactions is a skill for Claude Code, Codex from dylantarre/animation-principles. It costs 28 tokens per session (1,069 once invoked), scanned A, original, MIT.

Guidance for designing small animated responses in user interfaces, such as button presses, toggles, form checks, loading indicators, and notification badges.

In plain words
What is it for?
Use it when choosing motion for hover, press, focus, loading, and state-change feedback in a user interface.
Why use it?
It helps make interface changes clear and responsive without making animations distracting or inconsistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when choosing motion for hover, press, focus, loading, and state-change feedback in a user interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dylantarre/animation-principles/micro-interactions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dylantarre/animation-principles --skill micro-interactions
Clone the repo
git clone --depth 1 https://github.com/dylantarre/animation-principles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for micro-interactions

README.md
[![agentmods](https://agentmods.dev/badge/skills/dylantarre/animation-principles/micro-interactions.svg)](https://agentmods.dev/skills/dylantarre/animation-principles/micro-interactions)
Your own site
<a href="https://agentmods.dev/skills/dylantarre/animation-principles/micro-interactions"><img src="https://agentmods.dev/badge/skills/dylantarre/animation-principles/micro-interactions.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 15 Feb 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01069
Opus 5 $0.00014 $0.00535
Sonnet 5 $0.00006 $0.00214
Haiku 4.5 $0.00003 $0.00107

Measured 8d ago against content hash 9b43aaee901b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

micro-interactions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/01-by-domain/micro-interactions/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Micro-interaction Animation

Apply Disney's 12 animation principles to small UI feedback moments and interface details.

Quick Reference

Principle Micro-interaction Implementation
Squash & Stretch Button press compression, toggle bounce
Anticipation Hover state hints, pre-click feedback
Staging Focus attention on active element
Straight Ahead / Pose to Pose Progress vs state changes
Follow Through / Overlapping Ripple effects, settling motion
Slow In / Slow Out Snappy but smooth transitions
Arc Toggle switches, circular menus
Secondary Action Icons respond to parent state
Timing 100-300ms for most interactions
Exaggeration Clear but not distracting
Solid Drawing Consistent transform behavior
Appeal Delightful, purposeful feedback

Principle Applications

Squash & Stretch: Buttons compress slightly on press (scaleY: 0.95). Toggle thumbs squash when hitting bounds. Notification badges bounce on update. Keep subtle—this is UI, not cartoon.

Anticipation: Hover states prepare for click. Buttons lift/grow slightly before press animation. Draggable items elevate on grab start. Loading spinners wind up before spinning.

Staging: Active form field clearly distinguished. Error states demand attention. Success confirmations are unmistakable. One interaction feedback at a time.

Straight Ahead vs Pose to Pose: Progress indicators animate continuously (straight ahead). Checkboxes snap between states (pose to pose). Combine: loading indicator ends with state-change snap.

Follow Through & Overlapping: Ripple effects expand past tap point. Toggle switches overshoot then settle. Checkmarks draw with slight delay after box fills. Menu items stagger in.

Slow In / Slow Out: Quick ease-out for responsive feel. 100ms with ease-out feels instant. Avoid linear—looks broken. Snappy entrance, gentle settling.

Arc: Toggle switches travel in slight arc. Circular action buttons expand radially. Dropdown carets rotate smoothly. Menu items can follow curved path.

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 115 lines · 28 tokens per session scan A 9b43aaee901b

Subscribe to this mod's changes

micro-interactions is a skill published in the GitHub repository dylantarre/animation-principles (79 stars, last pushed 8mo ago), licensed MIT. It adds 28 tokens to every session and 1,069 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

playground

Creates interactive HTML playgrounds — self-contained single-file explorers that let users configure something visually through controls, see a live preview, and copy out a prompt. Use when the user asks to make a playground, explorer, or interactive tool for a topic.

anthropics/claude-plugins-official · 53 tokens

baseline-ui

Quickly deslop UI code by fixing spacing, hierarchy, typography, and small layout issues. Use when the interface needs a fast cleanup or polish pass.

ibelick/ui-skills · 34 tokens

frontend-design

A guide for building polished web interfaces such as pages, dashboards, applications, posters, and reusable React or Vue components. It covers visual direction, layout, typography, colors, animation, accessibility, and working HTML, CSS, or JavaScript code.

xstongxue/best-skills · 103 tokens

antfu-design

Use this when building interfaces with UnoCSS in any framework (React, Vue, Svelte, Solid, or plain HTML), from dense devtools panels to landing pages. Read core-design-read first to set the direction, then apply the token system plus the polish and anti-slop rules.

antfu/skills · 66 tokens

migrate

Apply DESIGN, canon, and modules to every page in the inventory, producing a deployable static HTML site. Use to migrate or render the whole captured site into the redesigned static tree ("migrate the pages", "render the migrated site", "apply the design to all pages", "build the deployable site", "convert the…

adobe/skills · 128 tokens

tailwind-css

Best practices for utility-first CSS with Tailwind, responsive design, and component patterns.

cosmicstack-labs/mercury-agent-skills · 20 tokens