Ui Animation Engineering logo

Ui Animation Engineering

Community
alpham8
ui-animation-engineering

Production-grade UI animation decisions: timing, easing, springs, transform-origin, interruptibility, stagger patterns, and perceived performance. Use when reviewing animations, building micro-interactions, or when UI 'feels sluggish/wrong'. Triggers on: animation review, motion design, dropdown/modal/toast animation, 'feels slow', 'animation wirkt falsch', micro-interactions, hover/active states.

Overview

Publisheralpham8
Repositoryagentic-webdev
Skill nameui-animation-engineering
Stars
4
Forks
0
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by alpham8 on GitHub. Read the source before you install it.

Installation

Install the Ui Animation Engineering AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/alpham8/agentic-webdev/tree/master/skills/ui-animation-engineering
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/alpham8/agentic-webdev.git /tmp/agentic-webdev
mkdir -p .claude/skills
cp -r /tmp/agentic-webdev/skills/ui-animation-engineering .claude/skills/ui-animation-engineering
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ui Animation Engineering in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ui Animation Engineering on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ui Animation Engineering is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

UI Animation Engineering

Based on Emil Kowalski's design engineering philosophy. Every animation decision must be intentional — unseen details compound into interfaces people love without knowing why.

Core Philosophy

Taste is trained, not innate

Good animation is not personal preference. It is a trained instinct: the ability to recognize what elevates an interaction. Study why the best interfaces feel the way they do. Reverse engineer animations. Inspect interactions. Be curious.

Unseen details compound

Most details users never consciously notice. That is the point. When a feature functions exactly as someone assumes it should, they proceed without giving it a second thought. That is the goal.

Beauty is leverage

People select tools based on the overall experience, not just functionality. Good defaults and good animations are real differentiators.


1. Frequency Rule (Non-Negotiable)

The frequency of an action determines its animation budget:

FrequencyAnimation BudgetExample
Hundreds of times/dayNone or drastically reducedKeyboard shortcuts, hover effects, list navigation
Tens of times/dayStandard, fast animationOpening modals, toggling states
OccasionalCan add characterToasts, feedback confirmations
Rare/first-timeCan add delightOnboarding, celebrations, feedback forms

Never animate keyboard-initiated actions. These actions are repeated hundreds of times daily. Animation makes them feel slow and disconnected.

Raycast has no open/close animation. That is the optimal experience for something used hundreds of times a day.


2. Duration Table

Rule: UI animations must stay under 300ms.

ElementDuration
Button press feedback100–160ms
Tooltips, small popovers125–200ms
Dropdowns, selects150–250ms
Modals, drawers200–500ms
Marketing/explanatoryCan be longer

A 180ms dropdown feels more responsive than a 400ms one. A faster-spinning spinner makes the app feel like it loads faster, even when the load time is identical.


3. Easing Rules

ContextEasingWhy
UI elements entering/appearingease-out or custom curveInstant visual feedback, then settles
UI elements exiting/disappearingease-in (short) or ease-out (if snapping away)Exits should feel quick, not linger
Hover/press feedbackease-outImmediate response to user action
Marketing/decorativeCustom cubic-bezierCharacter and brand expression

Never use:

  • linear for UI interactions (feels robotic)
  • ease-in for appearing elements (feels sluggish — user sees slow start)
  • ease-in-out as a default (the slow start adds unnecessary perceived delay)
  • transition: all (specify exact properties: transition: transform 200ms ease-out)

Perceived performance: ease-out at 200ms feels faster than ease-in at 200ms because the user sees immediate movement.


4. Spring Animations

Springs feel more natural than duration-based animations because they simulate real physics. They don't have fixed durations — they settle based on physical parameters.

When to use springs

  • Drag interactions with momentum
  • Elements that should feel "alive" (like Apple's Dynamic Island)
  • Gestures that can be interrupted mid-animation
  • Decorative mouse-tracking interactions
  • Any interaction where the user might change direction mid-gesture

Spring-based mouse interactions

Tying visual changes directly to mouse position feels artificial because it lacks motion. Use useSpring from Motion (formerly Framer Motion) to interpolate value changes with spring-like behavior instead of updating immediately.

When NOT to use springs

  • Simple show/hide transitions (duration-based is simpler and sufficient)
  • Keyboard-triggered UI (should be instant anyway)
  • Loading indicators (predictable timing is better)

5. Entry/Exit Patterns

Entry animations

Nothing in the real world appears from nothing.

BadGoodWhy
transform: scale(0)transform: scale(0.95); opacity: 0Starting from 0 implies materialization from void
opacity: 0 onlyopacity: 0; transform: translateY(8px)Pure fade lacks spatial context
All items appear at onceStagger with 30–80ms delay between itemsSequential reveal creates rhythm

Exit animations

Exit must be faster than enter. Users want to dismiss things quickly. The enter animation builds anticipation; the exit confirms the action.

  • Enter: 200–400ms (build anticipation)
  • Exit: 100–200ms (confirm dismissal)

Stagger pattern

css
.item {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeIn 300ms ease-out forwards;
}

.item:nth-child(1) { animation-delay: 0ms; }
.item:nth-child(2) { animation-delay: 50ms; }
.item:nth-child(3) { animation-delay: 100ms; }
.item:nth-child(4) { animation-delay: 150ms; }

Keep stagger delays between 30–80ms. Shorter feels rushed, longer feels sluggish.


6. Transform-Origin

Popovers scale from their trigger. Modals stay centered.

css
/* Radix UI — popover scales from trigger */
.popover {
    transform-origin: var(--radix-popover-content-transform-origin);
}

/* Base UI equivalent */
.popover {
    transform-origin: var(--transform-origin);
}

/* Modal — always centered (not anchored to trigger) */
.modal {
    transform-origin: center;
}

The default transform-origin: center is wrong for almost every popover. Fix this for dropdowns, selects, tooltips, context menus — anything anchored to a trigger element.


7. Interruptibility: Transitions vs Keyframes

CSS transitions can be interrupted and retargeted mid-animation. Keyframes restart from zero.

For any interaction that can be triggered rapidly (adding toasts, toggling states, hover effects), transitions produce smoother results.

css
/* Interruptible — good for dynamic UI */
.toast {
    transition: transform 400ms ease;
}

/* NOT interruptible — avoid for dynamic UI */
@keyframes slideIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

Use keyframes only for:

  • One-shot animations (page load reveals)
  • Complex multi-step sequences
  • Animations that should NOT be interrupted

Use transitions for:

  • Anything the user can trigger repeatedly
  • Hover/focus/active states
  • Toast notifications, dropdowns, tooltips

8. Touch & Hover Safety

Hover media query (Non-Negotiable)

Touch devices trigger hover on tap, causing false positives. Gate hover animations behind:

css
@media (hover: hover) and (pointer: fine) {
    .button:hover {
        transform: scale(1.02);
    }
}

Tooltip skip-delay

Tooltips should delay before appearing (prevent accidental activation). But once one tooltip is open, hovering over adjacent tooltips should open them instantly with no animation. This feels faster without defeating the purpose of the initial delay.


9. Performance (Non-Negotiable)

Only animate compositable properties

  • transform (translate, scale, rotate)
  • opacity
  • filter (with caution)

Never animate: top, left, width, height, margin, padding, border-width — these trigger layout recalculation.

Hardware acceleration

For Motion/Framer Motion under load, prefer transform: "translateX()" string syntax over x/y shorthand props for explicit GPU compositing.

backdrop-blur warning

backdrop-blur on scrolling content is expensive. Only apply to fixed/sticky elements (navbar, floating toolbar), never to elements that scroll with the page.


10. Button & Press Feedback

Every interactive element must feel responsive to press:

css
.button:active {
    transform: scale(0.97);
}
ElementActive State
Buttonsscale(0.97) or scale(0.98)
Cards (clickable)scale(0.99) (subtle)
List itemstranslateY(1px) or scale(0.99)
Toggles/switchesSpring animation on state change

11. Review Format (Required)

When reviewing UI animation code, use a Before/After/Why table:

BeforeAfterWhy
transition: all 300mstransition: transform 200ms ease-outSpecify exact properties; avoid all
transform: scale(0)transform: scale(0.95); opacity: 0Nothing appears from nothing
ease-in on dropdownease-out with custom curveease-in feels sluggish on entry
No :active state on buttontransform: scale(0.97) on :activeButtons must feel responsive to press
transform-origin: center on popovertransform-origin: var(--radix-popover-content-transform-origin)Popovers scale from their trigger
Same enter/exit speedEnter 300ms, exit 150msExit confirms action, must feel quick
Elements all appear at onceStagger delay 30–80ms between itemsSequential reveal creates rhythm
Hover animation without media queryWrap in @media (hover: hover) and (pointer: fine)Touch devices trigger hover on tap
Duration > 300ms on UI elementReduce to 150–250msUI must feel responsive, not cinematic
Keyframes on rapidly-triggered elementCSS transitionsTransitions are interruptible

12. Sonner Principles (Building Loved Components)

These principles come from building Sonner (13M+ weekly npm downloads) and apply to any component:

  1. Developer experience is key. No hooks, no context, no complex setup. Insert <Toaster /> once, call toast() from anywhere. The less friction to adopt, the more people will use it.

  2. Good defaults matter more than options. Ship beautiful out of the box. Most users never customize. The default easing, timing, and visual design should be excellent.

  3. Naming creates identity. A memorable name feels more elegant than a descriptive one. Sacrifice discoverability for memorability when appropriate.

  4. Handle edge cases invisibly. Pause toast timers when the tab is hidden. Fill gaps between stacked toasts with pseudo-elements to maintain hover state. Capture pointer events during drag. Users never notice these, and that is exactly right.

  5. Use transitions, not keyframes, for dynamic UI. Toasts are added rapidly. Keyframes restart from zero on interruption. Transitions retarget smoothly.

  6. Build a great documentation site. Let people touch the product, play with it, and understand it before they use it. Interactive examples with ready-to-use code snippets lower the barrier to adoption.


Quick Reference: Common Fixes

IssueFix
transition: allSpecify exact properties
scale(0) entryStart from scale(0.95) with opacity: 0
ease-in on UI elementSwitch to ease-out or custom curve
transform-origin: center on popoverSet to trigger location (Radix/Base UI variable)
Animation on keyboard actionRemove animation entirely
Duration > 300ms on UIReduce to 150–250ms
Hover without media queryAdd @media (hover: hover) and (pointer: fine)
Keyframes on rapid-trigger elementUse CSS transitions
Same enter/exit speedMake exit faster (enter 300ms → exit 150ms)
All items appear at onceAdd stagger (30–80ms between items)

Attribution

This skill synthesizes animation principles from Emil Kowalski's design engineering articles and his work on Sonner, Vaul, and other open-source components. For the full course: animations.dev

Frequently asked questions

What does the Ui Animation Engineering AI skill do?

Production-grade UI animation decisions: timing, easing, springs, transform-origin, interruptibility, stagger patterns, and perceived performance. Use when reviewing animations, building micro-interactions, or when UI 'feels sluggish/wrong'. Triggers on: animation review, motion design, dropdown/modal/toast animation, 'feels slow', 'animation wirkt falsch', micro-interactions, hover/active states.

Why use Ui Animation Engineering on TypingMind?

Because you install it once and use it with any model. Ui Animation Engineering is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ui Animation Engineering in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/alpham8/agentic-webdev/tree/master/skills/ui-animation-engineering. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Ui Animation Engineering?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ui Animation Engineering?

As many as you like. As long as a model supports skills, you can use Ui Animation Engineering with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ui Animation Engineering AI skill free?

It is published on GitHub by alpham8. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇