apple-design
What it does
This skill shares principles from Apple's design talks and applies them to web interfaces. It is for developers and designers who want drag, swipe, and sheet interactions to feel physical and responsive.
When to use it
- βWhen you build or review a gesture-driven interface such as a drag, swipe, or sheet.
- βWhen you want spring animations that can be interrupted and redirected.
- βWhen you need to support reduced motion or refine typography and materials.
Skill link
https://github.com/spree/spree/blob/main/.agents/skills/apple-design/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake this bottom sheet follow my finger, carry momentum, and feel natural when I let go.β
5 new skills a week. 1 minute to read.
How it works
The agent applies a set of principles: motion starts from the current on-screen value, keeps the user's velocity, and can be grabbed and reversed at any moment. It uses springs and web input events to achieve this.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Is this only for Apple devices?
No. It translates Apple's design principles into web tools such as CSS, Pointer Events, and spring libraries.
What does interruptible mean?
A motion can be grabbed and reversed partway through, rather than having to finish first.
Does it cover reduced motion?
Yes. The skill includes guidance for reduced-motion settings.
Details
Original description by the author
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
Popularity
- GitHub stars
- 16k
- Ranking position
- #10874
- License
- BSD-3-Clause
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
animate
16kBuilds an animation from scratch by first deciding whether it should animate at all, then choosing its purpose, timing, and curve before writing the code.
animation-vocabulary
16kTurns a vague description of an animation or motion effect into its exact technical name, so you know what to ask for.
find-animation-opportunities
16kSearches an interface for places that would benefit from motion and rejects the rest. Gives a short list of exact animation suggestions without changing code.
improve-animations
16kAudits a codebase's animations and writes prioritized plans that another agent can carry out. Plans only; it does not change the source code.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.