ui-animation

ui-animation is a cursor rule for Cursor from GktuOktay/ai-skills. It costs 0 tokens per session (2,017 once invoked), scanned A, original, MIT.

A guide to designing, implementing, reviewing, and improving motion in web and mobile user interfaces.

In plain words
What is it for?
It covers effects such as fades, slides, scaling, rotation, shape changes, color changes, blur, and staggered transitions, along with easing choices and review practices.
Why use it?
It helps teams choose appropriate movement and avoid animations that feel confusing, distracting, or poorly optimized.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It covers effects such as fades, slides, scaling, rotation, shape changes, color changes, blur, and staggered transitions, along with easing choices and review practices.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gktuoktay/ai-skills/ui-animation
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.

Clone the repo
git clone --depth 1 https://github.com/GktuOktay/ai-skills

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/gktuoktay/ai-skills/ui-animation/github.svg)](https://agentmods.dev/rules/gktuoktay/ai-skills/ui-animation)
Your own site
<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/ui-animation"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/ui-animation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-animation

Your own site · 80×15
<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/ui-animation"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/ui-animation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,017 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.
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.00000 $0.02017
Opus 5 $0.00000 $0.01009
Sonnet 5 $0.00000 $0.00403
Haiku 4.5 $0.00000 $0.00202

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

Security

Grade A, and why

ui-animation 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.

agents/cursor/rules/ui-animation.mdc · 202 lines

How it starts

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

UI Animation — Complete Guide

This skill covers the full lifecycle of UI animations: from identifying where animations add value, through implementation with best practices, to reviewing and optimizing existing animations.


1. Animation Vocabulary & Taxonomy

Motion Primitives

Primitive CSS / JS Property Use Case
Fade opacity Entrance/exit, overlays, skeleton → content
Slide translateX / translateY Page transitions, drawers, toasts
Scale scale / transform: scale() Modals, cards, hover emphasis
Rotate rotate / transform: rotate() Loading spinners, icon state change
Morph clip-path, d (SVG path) Shape transitions, creative reveals
Color Shift background-color, color, fill State feedback (success/error), theming
Blur filter: blur() Depth of field, focus transitions
Stagger Sequential delay per child List/grid entrance, cascade effects

Easing Reference

Name CSS Value Personality
Ease Out Cubic cubic-bezier(0.33, 1, 0.68, 1) Snappy, responsive (recommended default)
Ease In Out Quart cubic-bezier(0.76, 0, 0.24, 1) Elegant, polished transitions
Spring cubic-bezier(0.34, 1.56, 0.64, 1) Playful, bouncy, delightful
Linear linear Only for infinite loops (spinners, marquees)

Duration Guidelines

  • Micro-interactions (hover, press): 100–200ms
  • Small transitions (toggle, tab switch): 200–300ms
  • Medium transitions (modal open, slide-in): 300–500ms
  • Large/page transitions: 400–700ms
  • Never exceed 1000ms for functional animations

2. Finding Animation Opportunities

When reviewing a UI, systematically scan for these high-impact animation opportunities:

High Priority (Always Animate)

  1. Page/Route Transitions — Fade + subtle slide between pages
  2. Modal & Dialog — Scale from 0.95 → 1.0 + backdrop fade
  3. Loading States — Skeleton shimmer, spinner, progress bar
  4. Toast / Notification — Slide in from edge + auto-dismiss fade
  5. Navigation State — Active tab indicator slide, hamburger → X morph

Read the full file on GitHub · 202 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 · 202 lines · 2,017 tokens per session scan A 813d3aef36bc

Subscribe to this mod's changes

ui-animation is a cursor rule published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,017 tokens. 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-09-03.