Logo : Ui Animation Engineering

Ui Animation Engineering

Communauté
alpham8
ui-animation-engineering

Prendre des décisions d’animation d’interface adaptées à la production : durée, easing, ressorts, transform-origin, possibilité d’interrompre l’animation, décalage progressif et performance perçue. À utiliser pour évaluer des animations, créer des micro-interactions ou lorsqu’une interface semble lente ou que son animation paraît incorrecte. Se déclenche pour les évaluations d’animations, le motion design, les animations de menus déroulants, fenêtres modales ou notifications toast, les animations qui semblent lentes ou incorrectes, les micro-interactions et les états au survol ou actifs.

Add to TypingMind

Présentation

Éditeuralpham8
Dépôtagentic-webdev
Nom de la compétenceui-animation-engineering
Étoiles
4
Forks
0
Fichiers inclus
Instructions uniquement
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par alpham8 sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Ui Animation Engineering dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/alpham8/agentic-webdev/tree/master/skills/ui-animation-engineering
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Ui Animation Engineering dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Ui Animation Engineering dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Ui Animation Engineering n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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

Foire aux questions

À quoi sert la compétence IA Ui Animation Engineering ?

Prendre des décisions d’animation d’interface adaptées à la production : durée, easing, ressorts, transform-origin, possibilité d’interrompre l’animation, décalage progressif et performance perçue. À utiliser pour évaluer des animations, créer des micro-interactions ou lorsqu’une interface semble lente ou que son animation paraît incorrecte. Se déclenche pour les évaluations d’animations, le motion design, les animations de menus déroulants, fenêtres modales ou notifications toast, les animations qui semblent lentes ou incorrectes, les micro-interactions et les états au survol ou actifs.

Pourquoi utiliser Ui Animation Engineering sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Ui Animation Engineering se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Ui Animation Engineering dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/alpham8/agentic-webdev/tree/master/skills/ui-animation-engineering. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Ui Animation Engineering ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Ui Animation Engineering ?

Autant que vous le souhaitez. Vous pouvez utiliser Ui Animation Engineering avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Ui Animation Engineering est-elle gratuite ?

Cette compétence est publiée sur GitHub par alpham8. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇