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.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
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
setPointerCaptureso tracking continues even when the pointer leaves the element's bounds. - Track a short velocity/position history (last few
pointermoveevents), 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
@keyframesfor 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
Commentaires
- …
Autres skills de ce dépôt
animate
16kConstruit une animation à partir de zéro en décidant d'abord si elle doit vraiment animer, puis en choisissant son but, son timing et sa courbe avant d'écrire le code.
animation-vocabulary
16kTransforme une description vague d'une animation ou d'un effet de mouvement en son nom technique exact, pour que vous sachiez quoi demander.
find-animation-opportunities
16kParcourt une interface à la recherche des endroits qui bénéficieraient d'un mouvement et écarte les autres. Donne une courte liste de suggestions d'animation précises, sans modifier le code.
improve-animations
16kAudite les animations d'une base de code et rédige des plans hiérarchisés qu'un autre agent peut exécuter. Produit uniquement des plans, sans modifier le code source.
Skills similaires
canvas
394kPermet à votre agent d'afficher un widget visuel hébergé sur un panneau Mac connecté, puis de masquer ce panneau ou de le déplacer vers une autre page.
control-ui
394kAide votre agent à organiser et dépanner l'interface de contrôle d'OpenClaw, y compris les sessions, les tableaux de bord et les passerelles connectées.
diagram-maker
394kAide votre agent à créer des diagrammes clairs en SVG, HTML ou Excalidraw modifiable, pour des processus, des architectures système et des croquis de tableau blanc.