Aller au contenu
Skillpedia
Interfaces (UI/UX)16k · #10874

apple-design

Ce qu’il fait

Cette skill transmet les principes des conférences de design d'Apple et les applique aux interfaces web. Elle s'adresse aux développeurs et aux concepteurs qui veulent que les gestes de glisser, balayer et les feuilles aient un comportement physique et réactif.

Quand l’utiliser

  • ✓Quand vous construisez ou relisez une interface pilotée par les gestes, comme un glissement, un balayage ou une feuille.
  • ✓Quand vous voulez des animations à ressort qui peuvent être interrompues et redirigées.
  • ✓Quand vous devez prendre en charge le mouvement réduit ou affiner la typographie et les matériaux.

Lien du skill

https://github.com/spree/spree/blob/main/.agents/skills/apple-design/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/spree/spree/blob/main/.agents/skills/apple-design/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Fais en sorte que cette feuille du bas suive mon doigt, garde l'élan et se comporte naturellement quand je relâche.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent applique un ensemble de principes : le mouvement part de la valeur actuelle à l'écran, conserve la vitesse de l'utilisateur et peut être saisi et inversé à tout moment. Il utilise des ressorts et les événements d'entrée du web pour y parvenir.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Apple Design

How Apple builds interfaces that stop feeling like a computer and start feeling like an extension of you. This knowledge comes from Apple's WWDC design talks — chiefly Designing Fluid Interfaces (WWDC 2018) — distilled and translated into the web platform (CSS, Pointer Events, requestAnimationFrame, spring libraries like Motion/Framer Motion).

The through-line: an interface feels alive when motion starts from the current on-screen value, inherits the user's velocity, projects momentum forward, and can be grabbed and reversed at any instant. Springs are the tool that makes all of this natural, because they are inherently interruptible and velocity-aware.

The Core Idea

"When we align the interface to the way we think and move, something magical happens — it stops feeling like a computer and starts feeling like a seamless extension of us."

An interface is fluid when it behaves like the physical world: things respond instantly, move continuously, carry momentum, resist at boundaries, and can be redirected mid-motion. Everything below is a way to get closer to that.

Apple frames design as serving four human needs: safety/predictability, understanding, achievement, and joy. Every rule here serves one of them.

1. Response — kill latency

The moment lag appears, the feeling of directness "falls off a cliff." Response is the foundation everything else is built on.

  • Respond on pointer-down, not on release. Highlight a button the instant it's pressed. Waiting for click/touch-up to show feedback feels dead.
  • Be vigilant about every latency. Audit debounces, artificial timers, transition waits, and the ~300ms tap delay. Anything on the input path that isn't essential is a regression.
  • Feedback must be continuous during the interaction, not just at the end. For a drag, slider, or drawer, update the UI 1:1 with the pointer the whole way through — never animate only when the gesture completes.
/* Feedback lives on the press, and it's instant */
.button:active {
  transform: scale(0.97);
  transition: transform 100ms ease-out;
}

2. Direct manipulation — 1:1 tracking

"Touch and content should move together."

When the user drags something, it must stay glued to the finger — and respect the offset from where they grabbed it. Snapping to the element's center on grab breaks the illusion immediately.

  • Use Pointer Events with setPointerCapture so tracking continues even when the pointer leaves the element's bounds.
  • Track a short velocity/position history (last few pointermove events), not just the current point — you'll need velocity at release.
el.addEventListener('pointerdown', (e) => {
  el.setPointerCapture(e.pointerId);
  const grabOffset = e.clientY - el.getBoundingClientRect().top; // respect where they grabbed
  // ...track position + timestamp history for velocity
});

3. Interruptibility — the single most important principle

"The thought and the gesture happen in parallel."

Every animation must be interruptible and redirectable at any moment. A user must be able to grab a moving element mid-flight and reverse it without waiting for the animation to finish. A closing modal the user grabs again should follow the finger — not finish closing first, then reopen.

  • Never lock out input during a transition.
  • Always animate from the presentation (current) value, never the target value. On interrupt, read the element's live on-screen transform and start the new animation from there. Starting from the logical/target value causes a visible jump.
  • Avoid CSS transitions and @keyframes for anything gesture-driven — they can't be smoothly grabbed and reversed mid-flight. Springs animate from the current value by default, which is exactly what interruption needs.
  • When a gesture reverses, blend velocity — don't hard-cut it. Replacing one animation with another at a reversal creates a velocity discontinuity, a "brick wall." Spring libraries that carry velocity through a re-target avoid it. (This is what iOS's additive animations do natively; on the web, choose a spring library that re-targets from the current velocity.)
  • Decompose 2D motion into independent X and Y springs. A single spring on a 2D distance desyncs when X and Y have different velocities.

4. Behavior over animation — use springs

"Think of animation as a conversation between you and the object, not something prescribed by the interfac

Questions fréquentes

Est-ce réservé aux appareils Apple ?

Non. Elle traduit les principes de design d'Apple en outils web comme CSS, Pointer Events et des bibliothèques de ressorts.

Que signifie interruptible ?

Un mouvement peut être saisi et inversé en cours de route, au lieu d'avoir à se terminer d'abord.

Couvre-t-elle le mouvement réduit ?

Oui. La skill comprend des indications pour les réglages de mouvement réduit.

Détails

Description originale de l’auteur

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.

repo: spree/spree

Popularité

Étoiles GitHub
16k
Position au classement
#10874
Licence
BSD-3-Clause
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires