apple-design

Implements Apple-style fluid interfaces with spring animations, gesture tracking, and translucent materials for the web.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Debindenny/travelplanner-community- --skill apple-design-debindenny
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: apple-design
Source: https://github.com/Debindenny/travelplanner-community-/tree/main/travel-planner/.agents/skills/apple-design
Command: npx skills add https://github.com/Debindenny/travelplanner-community- --skill apple-design-debindenny

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web interfaces often feel stiff and disconnected because animations are pre-scripted, gestures lack momentum, and transitions cannot be interrupted mid-flight. This Skill translates Apple's WWDC design guidance (Designing Fluid Interfaces, UI Typography, Principles of Great Design) into concrete web techniques using CSS, Pointer Events, requestAnimationFrame, and spring libraries like Motion and Framer Motion. ## Core Features & Use Cases - Gesture-Driven Motion: Implement 1:1 drag tracking with Pointer Events and setPointerCapture, velocity handoff from gesture to spring, and momentum projection to compute flick landing points. - Interruptible Spring Animations: Configure damping ratio and response parameters, animate from the live presentation value, and blend velocity on reversal to avoid visible jumps. - Materials, Typography & Accessibility: Build translucent layers with backdrop-filter, apply size-specific tracking and leading for typography, and honor prefers-reduced-motion, reduced-transparency, and contrast media queries. - Use Case: When building a bottom sheet or draggable card, use this Skill to wire pointer tracking, project the release velocity to the nearest snap point, and hand off velocity to a spring so the gesture flows seamlessly into the animation. ## Quick Start Use the apple-design skill to build a draggable bottom sheet with spring physics, momentum projection, and rubber-banding at the edges.

Frequently Asked Questions about apple-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a draggable bottom sheet with momentum on the web?▼

Use spring animations instead of CSS transitions or keyframes, and always start from the element's live on-screen transform rather than the target value. Spring libraries like Motion or Framer Motion re-target from the current value and velocity, so users can grab and reverse motion mid-flight.

How do I implement a draggable bottom sheet with momentum on the web?▼

Track the pointer with Pointer Events and setPointerCapture, record recent positions to compute release velocity, then project the resting point with (v/1000)*d/(1-d) where d is about 0.998. Snap to the nearest target and pass the release velocity into the spring.

What spring parameters should I use for UI animations?▼

Apple uses damping ratio and response instead of mass, stiffness, and damping. Default to damping 1.0 (critically damped, no overshoot) with response 0.3-0.4 seconds; use damping around 0.8 only for momentum-driven interactions like flicks and drawer releases.

Should I use CSS transitions or spring libraries for gesture-driven UI?▼

Use spring libraries for anything gesture-driven, because CSS transitions and keyframes cannot be smoothly grabbed and reversed mid-flight. CSS transitions are acceptable for simple non-interactive state changes like hover feedback.

How do I handle prefers-reduced-motion for animated interfaces?▼

Replace slides, springs, and parallax with short opacity cross-fades or static transitions under the prefers-reduced-motion media query, and drop elastic overshoot. Also respond to prefers-reduced-transparency by solidifying blurred surfaces and prefers-contrast by adding defined borders.