animations

A set of guidance for making interface animations short, responsive, and suited to the interaction they describe.

In plain words
What is it for?
Use it when adding CSS or JavaScript animations, choosing easing curves, and setting transition durations.
Why use it?
It prevents animations from making a user interface feel slow or distracting.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/agentset-ai/agentset/animations
Clone the repo
git clone --depth 1 https://github.com/agentset-ai/agentset

Made for: Cursor.

Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00005 $0.00955
Opus 5 $0.00003 $0.00477
Sonnet 5 $0.00001 $0.00191
Haiku 4.5 $0.00001 $0.00096

Measured 2d ago against content hash c905ce958517, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

animations 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 2d 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.

.cursor/rules/animations.mdc · 70 lines

How it starts

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

Animations Guidelines

Keep your animations fast

  • Default to use ease-out for most animations.
  • Animations should never be longer than 1s (unless it’s illustrative), most of them should be around 0.2s to 0.3s.

Easing rules

  • Don’t use built-in CSS easings unless it’s ease or linear.
  • Use the following easings for their described use case:
    • ease-in: (Starts slow, speeds up) Should generally be avoided as it makes the UI feel slow.

      • ease-in-quad: cubic-bezier(.55, .085, .68, .53)
      • ease-in-cubic: cubic-bezier(.550, .055, .675, .19)
      • ease-in-quart: cubic-bezier(.895, .03, .685, .22)
      • ease-in-quint: cubic-bezier(.755, .05, .855, .06)
      • ease-in-expo: cubic-bezier(.95, .05, .795, .035)
      • ease-in-circ: cubic-bezier(.6, .04, .98, .335)
    • ease-out: (Starts fast, slows down) Best for elements entering the screen or user-initiated interactions.

      • ease-out-quad: cubic-bezier(.25, .46, .45, .94)
      • ease-out-cubic: cubic-bezier(.215, .61, .355, 1)
      • ease-out-quart: cubic-bezier(.165, .84, .44, 1)
      • ease-out-quint: cubic-bezier(.23, 1, .32, 1)
      • ease-out-expo: cubic-bezier(.19, 1, .22, 1)
      • ease-out-circ: cubic-bezier(.075, .82, .165, 1)
    • ease-in-out: (Smooth acceleration and deceleration) Perfect for elements moving within the screen.

      • ease-in-out-quad: cubic-bezier(.455, .03, .515, .955)
      • ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1)
      • ease-in-out-quart: cubic-bezier(.77, 0, .175, 1)
      • ease-in-out-quint: cubic-bezier(.86, 0, .07, 1)
      • ease-in-out-expo: cubic-bezier(1, 0, 0, 1)
      • ease-in-out-circ: cubic-bezier(.785, .135, .15, .86)

Hover transitions

  • Use the built-in CSS ease with a duration of 200ms for simple hover transitions like color, background-color, opacity.
  • Fall back to easing rules for more complex hover transitions.
  • Disable hover transitions on touch devices with the @media (hover: hover) and (pointer: fine) media query.

Read the full file on GitHub · 70 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. 2d ago First seen · 70 lines · 5 tokens per session scan A c905ce958517

Subscribe to this mod's changes

animations is a cursor rule published in the GitHub repository agentset-ai/agentset (2,079 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 955 once invoked, about $0.0000 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.