mobileui-os 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,2087 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
````md
|
|
4
|
+
# Apple Motion Intelligence
|
|
5
|
+
|
|
6
|
+
> Agent knowledge module for designing purposeful, responsive, physically
|
|
7
|
+
> coherent, accessible motion for iOS and iPadOS interfaces.
|
|
8
|
+
|
|
9
|
+
Version: 1.0
|
|
10
|
+
Platform: iOS / iPadOS
|
|
11
|
+
Role: Motion intelligence
|
|
12
|
+
Parent: knowledge/apple/interaction.md
|
|
13
|
+
Use with: MobileUI-OS
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# 1. PURPOSE
|
|
18
|
+
|
|
19
|
+
Motion is not decoration.
|
|
20
|
+
|
|
21
|
+
Motion communicates:
|
|
22
|
+
|
|
23
|
+
- hierarchy
|
|
24
|
+
- continuity
|
|
25
|
+
- causality
|
|
26
|
+
- state
|
|
27
|
+
- spatial relationships
|
|
28
|
+
- focus
|
|
29
|
+
- feedback
|
|
30
|
+
- progress
|
|
31
|
+
- completion
|
|
32
|
+
|
|
33
|
+
The agent must use motion to improve understanding rather than merely make
|
|
34
|
+
interfaces look impressive.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# 2. CORE PRINCIPLE
|
|
39
|
+
|
|
40
|
+
Every meaningful animation should answer at least one question:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
What changed?
|
|
44
|
+
Where did it come from?
|
|
45
|
+
Where did it go?
|
|
46
|
+
What caused this?
|
|
47
|
+
What should I focus on?
|
|
48
|
+
Is the operation still happening?
|
|
49
|
+
Did the action succeed?
|
|
50
|
+
````
|
|
51
|
+
|
|
52
|
+
If motion answers none of these questions, question whether it should exist.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# 3. MOTION HIERARCHY
|
|
57
|
+
|
|
58
|
+
Motion should have hierarchy just like typography and layout.
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
PRIMARY MOTION
|
|
62
|
+
↓
|
|
63
|
+
major navigation
|
|
64
|
+
major state changes
|
|
65
|
+
major spatial transitions
|
|
66
|
+
|
|
67
|
+
SECONDARY MOTION
|
|
68
|
+
↓
|
|
69
|
+
component transitions
|
|
70
|
+
supporting elements
|
|
71
|
+
|
|
72
|
+
MICRO MOTION
|
|
73
|
+
↓
|
|
74
|
+
press feedback
|
|
75
|
+
icon changes
|
|
76
|
+
small state changes
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Do not give every element equal animation weight.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
# 4. MOTION SHOULD FOLLOW MEANING
|
|
84
|
+
|
|
85
|
+
Prefer:
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
semantic transition
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
over:
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
random visual effect
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Example:
|
|
98
|
+
|
|
99
|
+
```text
|
|
100
|
+
List item
|
|
101
|
+
↓
|
|
102
|
+
Detail screen
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
A transition that visually connects the item to the detail screen has meaning.
|
|
106
|
+
|
|
107
|
+
A random rotation has little semantic value.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# 5. MOTION AS CAUSALITY
|
|
112
|
+
|
|
113
|
+
Good motion makes cause and effect obvious.
|
|
114
|
+
|
|
115
|
+
Example:
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
User taps Favorite
|
|
119
|
+
↓
|
|
120
|
+
favorite icon changes
|
|
121
|
+
↓
|
|
122
|
+
item state becomes favorite
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The user can understand:
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
my action
|
|
129
|
+
→
|
|
130
|
+
system response
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
# 6. MOTION AS CONTINUITY
|
|
136
|
+
|
|
137
|
+
When an object appears in another context, motion can preserve its identity.
|
|
138
|
+
|
|
139
|
+
Example:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
Album thumbnail
|
|
143
|
+
↓
|
|
144
|
+
expanded player artwork
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
The transition can visually communicate:
|
|
148
|
+
|
|
149
|
+
```text
|
|
150
|
+
same object
|
|
151
|
+
new context
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
This reduces cognitive discontinuity.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
# 7. MOTION AS SPATIAL MEMORY
|
|
159
|
+
|
|
160
|
+
A transition can teach users where things are.
|
|
161
|
+
|
|
162
|
+
Example:
|
|
163
|
+
|
|
164
|
+
```text
|
|
165
|
+
Home
|
|
166
|
+
↓
|
|
167
|
+
Settings
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
A coherent transition establishes:
|
|
171
|
+
|
|
172
|
+
```text
|
|
173
|
+
Home
|
|
174
|
+
→
|
|
175
|
+
Settings
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Returning should feel like:
|
|
179
|
+
|
|
180
|
+
```text
|
|
181
|
+
Settings
|
|
182
|
+
→
|
|
183
|
+
Home
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
rather than two unrelated screens flashing into existence.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
# 8. TRANSITION TYPES
|
|
191
|
+
|
|
192
|
+
Common motion categories:
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
entrance
|
|
196
|
+
exit
|
|
197
|
+
replacement
|
|
198
|
+
expansion
|
|
199
|
+
collapse
|
|
200
|
+
movement
|
|
201
|
+
reordering
|
|
202
|
+
fade
|
|
203
|
+
scale
|
|
204
|
+
transform
|
|
205
|
+
gesture-driven
|
|
206
|
+
state transition
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Choose based on meaning.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
# 9. ENTRANCE MOTION
|
|
214
|
+
|
|
215
|
+
Entrance animation should explain how new content enters.
|
|
216
|
+
|
|
217
|
+
Examples:
|
|
218
|
+
|
|
219
|
+
```text
|
|
220
|
+
sheet
|
|
221
|
+
↓
|
|
222
|
+
moves from presentation edge
|
|
223
|
+
|
|
224
|
+
popover
|
|
225
|
+
↓
|
|
226
|
+
appears near its source
|
|
227
|
+
|
|
228
|
+
detail view
|
|
229
|
+
↓
|
|
230
|
+
transitions from previous context
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Avoid arbitrary entrance directions.
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
# 10. EXIT MOTION
|
|
238
|
+
|
|
239
|
+
Exit motion should communicate where content went.
|
|
240
|
+
|
|
241
|
+
For example:
|
|
242
|
+
|
|
243
|
+
```text
|
|
244
|
+
sheet
|
|
245
|
+
↓
|
|
246
|
+
returns toward dismissal direction
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
This reinforces spatial understanding.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
# 11. REPLACEMENT
|
|
254
|
+
|
|
255
|
+
When content changes in place, use motion only when it helps preserve continuity.
|
|
256
|
+
|
|
257
|
+
Example:
|
|
258
|
+
|
|
259
|
+
```text
|
|
260
|
+
Loading
|
|
261
|
+
↓
|
|
262
|
+
Content
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
A subtle transition may communicate that the same region has changed state.
|
|
266
|
+
|
|
267
|
+
Do not animate every text replacement.
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
# 12. EXPANSION
|
|
272
|
+
|
|
273
|
+
Expansion is useful when content reveals more detail.
|
|
274
|
+
|
|
275
|
+
Example:
|
|
276
|
+
|
|
277
|
+
```text
|
|
278
|
+
Compact player
|
|
279
|
+
↓
|
|
280
|
+
Expanded player
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
The user should feel:
|
|
284
|
+
|
|
285
|
+
```text
|
|
286
|
+
same object
|
|
287
|
+
+
|
|
288
|
+
more space
|
|
289
|
+
+
|
|
290
|
+
more controls
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
rather than:
|
|
294
|
+
|
|
295
|
+
```text
|
|
296
|
+
screen disappeared
|
|
297
|
+
+
|
|
298
|
+
new screen appeared
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
# 13. COLLAPSE
|
|
304
|
+
|
|
305
|
+
Collapse should generally preserve the relationship established during
|
|
306
|
+
expansion.
|
|
307
|
+
|
|
308
|
+
```text
|
|
309
|
+
Expanded
|
|
310
|
+
↓
|
|
311
|
+
Compact
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
The transition should feel reversible.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
# 14. SCALE
|
|
319
|
+
|
|
320
|
+
Scale can communicate hierarchy.
|
|
321
|
+
|
|
322
|
+
Example:
|
|
323
|
+
|
|
324
|
+
```text
|
|
325
|
+
small media thumbnail
|
|
326
|
+
↓
|
|
327
|
+
large media artwork
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
Use scale to communicate transformation or emphasis.
|
|
331
|
+
|
|
332
|
+
Avoid excessive scaling on routine controls.
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
# 15. FADE
|
|
337
|
+
|
|
338
|
+
Fade is useful when:
|
|
339
|
+
|
|
340
|
+
* continuity is not spatially important
|
|
341
|
+
* content is being replaced
|
|
342
|
+
* subtle emphasis is desired
|
|
343
|
+
|
|
344
|
+
Do not use fade as the universal solution.
|
|
345
|
+
|
|
346
|
+
If spatial context matters, movement may communicate more information.
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
# 16. SLIDE
|
|
351
|
+
|
|
352
|
+
Sliding is useful when content enters from a meaningful direction.
|
|
353
|
+
|
|
354
|
+
Examples:
|
|
355
|
+
|
|
356
|
+
```text
|
|
357
|
+
navigation
|
|
358
|
+
sheet
|
|
359
|
+
drawer
|
|
360
|
+
carousel
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
Direction should have semantic meaning.
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
# 17. SPRING PHYSICS
|
|
368
|
+
|
|
369
|
+
Physical-feeling motion can communicate:
|
|
370
|
+
|
|
371
|
+
```text
|
|
372
|
+
weight
|
|
373
|
+
momentum
|
|
374
|
+
elasticity
|
|
375
|
+
responsiveness
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
Spring-based animation is often appropriate for:
|
|
379
|
+
|
|
380
|
+
```text
|
|
381
|
+
dragging
|
|
382
|
+
interactive movement
|
|
383
|
+
expansion
|
|
384
|
+
repositioning
|
|
385
|
+
gesture-driven transitions
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
# 18. SPRING RULE
|
|
391
|
+
|
|
392
|
+
Do not use the same spring everywhere.
|
|
393
|
+
|
|
394
|
+
Different interactions may require different physical characteristics.
|
|
395
|
+
|
|
396
|
+
Conceptually:
|
|
397
|
+
|
|
398
|
+
```text
|
|
399
|
+
quick interaction
|
|
400
|
+
↓
|
|
401
|
+
responsive spring
|
|
402
|
+
|
|
403
|
+
large object
|
|
404
|
+
↓
|
|
405
|
+
more controlled movement
|
|
406
|
+
|
|
407
|
+
drag release
|
|
408
|
+
↓
|
|
409
|
+
natural settling
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Motion should match the perceived object.
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
# 19. SPRING PARAMETERS
|
|
417
|
+
|
|
418
|
+
When implementing spring-based motion, reason about:
|
|
419
|
+
|
|
420
|
+
```text
|
|
421
|
+
stiffness
|
|
422
|
+
damping
|
|
423
|
+
mass
|
|
424
|
+
initial velocity
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
The goal is not to find a universally perfect number.
|
|
428
|
+
|
|
429
|
+
The goal is to create appropriate perceived behavior.
|
|
430
|
+
|
|
431
|
+
---
|
|
432
|
+
|
|
433
|
+
# 20. VELOCITY CONTINUITY
|
|
434
|
+
|
|
435
|
+
Gesture-driven motion should preserve velocity where appropriate.
|
|
436
|
+
|
|
437
|
+
Example:
|
|
438
|
+
|
|
439
|
+
```text
|
|
440
|
+
user drags
|
|
441
|
+
↓
|
|
442
|
+
releases quickly
|
|
443
|
+
↓
|
|
444
|
+
object continues naturally
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
A sudden stop can feel artificial.
|
|
448
|
+
|
|
449
|
+
---
|
|
450
|
+
|
|
451
|
+
# 21. INTERRUPTIBLE MOTION
|
|
452
|
+
|
|
453
|
+
Users should be able to change their mind.
|
|
454
|
+
|
|
455
|
+
Example:
|
|
456
|
+
|
|
457
|
+
```text
|
|
458
|
+
open sheet
|
|
459
|
+
↓
|
|
460
|
+
user swipes down immediately
|
|
461
|
+
↓
|
|
462
|
+
sheet reverses naturally
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
Avoid forcing users to wait for an animation to complete.
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
# 22. INTERACTIVE MOTION
|
|
470
|
+
|
|
471
|
+
Interactive animations should follow the user's gesture directly.
|
|
472
|
+
|
|
473
|
+
Conceptually:
|
|
474
|
+
|
|
475
|
+
```text
|
|
476
|
+
gesture distance
|
|
477
|
+
↓
|
|
478
|
+
visual position
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
This creates direct manipulation.
|
|
482
|
+
|
|
483
|
+
Example:
|
|
484
|
+
|
|
485
|
+
```text
|
|
486
|
+
drag sheet downward
|
|
487
|
+
↓
|
|
488
|
+
sheet moves downward
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
The animation is controlled by the user rather than playing independently.
|
|
492
|
+
|
|
493
|
+
---
|
|
494
|
+
|
|
495
|
+
# 23. GESTURE + SPRING
|
|
496
|
+
|
|
497
|
+
A common pattern:
|
|
498
|
+
|
|
499
|
+
```text
|
|
500
|
+
DRAG
|
|
501
|
+
↓
|
|
502
|
+
interactive position
|
|
503
|
+
↓
|
|
504
|
+
RELEASE
|
|
505
|
+
↓
|
|
506
|
+
velocity + threshold
|
|
507
|
+
↓
|
|
508
|
+
spring to final state
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
This can create a physical interaction model.
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
# 24. THRESHOLDS
|
|
516
|
+
|
|
517
|
+
Gesture-driven animations may use thresholds.
|
|
518
|
+
|
|
519
|
+
Example:
|
|
520
|
+
|
|
521
|
+
```text
|
|
522
|
+
drag distance < threshold
|
|
523
|
+
↓
|
|
524
|
+
return
|
|
525
|
+
|
|
526
|
+
drag distance > threshold
|
|
527
|
+
↓
|
|
528
|
+
dismiss
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
Thresholds should feel predictable.
|
|
532
|
+
|
|
533
|
+
Avoid requiring users to drag an unreasonable distance.
|
|
534
|
+
|
|
535
|
+
---
|
|
536
|
+
|
|
537
|
+
# 25. VELOCITY + DISTANCE
|
|
538
|
+
|
|
539
|
+
Dismissal decisions can consider both:
|
|
540
|
+
|
|
541
|
+
```text
|
|
542
|
+
distance
|
|
543
|
+
+
|
|
544
|
+
velocity
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
A fast swipe may communicate stronger intent than a slow small drag.
|
|
548
|
+
|
|
549
|
+
---
|
|
550
|
+
|
|
551
|
+
# 26. SHEET MOTION
|
|
552
|
+
|
|
553
|
+
Sheets should feel attached to the interaction that opened them.
|
|
554
|
+
|
|
555
|
+
Possible behavior:
|
|
556
|
+
|
|
557
|
+
```text
|
|
558
|
+
open
|
|
559
|
+
↓
|
|
560
|
+
rise naturally
|
|
561
|
+
|
|
562
|
+
drag
|
|
563
|
+
↓
|
|
564
|
+
follow finger
|
|
565
|
+
|
|
566
|
+
release
|
|
567
|
+
↓
|
|
568
|
+
dismiss OR return
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
Avoid detached modal animations that feel unrelated to the gesture.
|
|
572
|
+
|
|
573
|
+
---
|
|
574
|
+
|
|
575
|
+
# 27. SHEET DISMISSAL
|
|
576
|
+
|
|
577
|
+
If a sheet is dismissible by dragging:
|
|
578
|
+
|
|
579
|
+
```text
|
|
580
|
+
small movement
|
|
581
|
+
↓
|
|
582
|
+
return
|
|
583
|
+
|
|
584
|
+
meaningful movement
|
|
585
|
+
↓
|
|
586
|
+
dismiss
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
The user should receive visual feedback during the gesture.
|
|
590
|
+
|
|
591
|
+
---
|
|
592
|
+
|
|
593
|
+
# 28. CARD EXPANSION
|
|
594
|
+
|
|
595
|
+
For expandable cards:
|
|
596
|
+
|
|
597
|
+
```text
|
|
598
|
+
collapsed
|
|
599
|
+
↓
|
|
600
|
+
tap
|
|
601
|
+
↓
|
|
602
|
+
expanded
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
Preserve:
|
|
606
|
+
|
|
607
|
+
```text
|
|
608
|
+
identity
|
|
609
|
+
position
|
|
610
|
+
content relationship
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
where possible.
|
|
614
|
+
|
|
615
|
+
---
|
|
616
|
+
|
|
617
|
+
# 29. MATCHED ELEMENTS
|
|
618
|
+
|
|
619
|
+
When an object persists between views, consider matching:
|
|
620
|
+
|
|
621
|
+
```text
|
|
622
|
+
image
|
|
623
|
+
title
|
|
624
|
+
icon
|
|
625
|
+
container
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
between states.
|
|
629
|
+
|
|
630
|
+
The user perceives continuity rather than replacement.
|
|
631
|
+
|
|
632
|
+
---
|
|
633
|
+
|
|
634
|
+
# 30. SHARED ELEMENT MOTION
|
|
635
|
+
|
|
636
|
+
Conceptually:
|
|
637
|
+
|
|
638
|
+
```text
|
|
639
|
+
Screen A
|
|
640
|
+
┌────────────┐
|
|
641
|
+
│ image │
|
|
642
|
+
└────────────┘
|
|
643
|
+
↓
|
|
644
|
+
Screen B
|
|
645
|
+
┌──────────────────┐
|
|
646
|
+
│ │
|
|
647
|
+
│ image │
|
|
648
|
+
│ │
|
|
649
|
+
└──────────────────┘
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
The image visually transforms rather than disappearing and reappearing.
|
|
653
|
+
|
|
654
|
+
---
|
|
655
|
+
|
|
656
|
+
# 31. DO NOT OVERUSE SHARED ELEMENTS
|
|
657
|
+
|
|
658
|
+
Shared-element transitions are powerful.
|
|
659
|
+
|
|
660
|
+
They become distracting when everything participates.
|
|
661
|
+
|
|
662
|
+
Use them for:
|
|
663
|
+
|
|
664
|
+
```text
|
|
665
|
+
primary content
|
|
666
|
+
strong visual identity
|
|
667
|
+
important continuity
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
---
|
|
671
|
+
|
|
672
|
+
# 32. NAVIGATION MOTION
|
|
673
|
+
|
|
674
|
+
Navigation transitions should communicate hierarchy.
|
|
675
|
+
|
|
676
|
+
For example:
|
|
677
|
+
|
|
678
|
+
```text
|
|
679
|
+
parent
|
|
680
|
+
↓
|
|
681
|
+
child
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
and:
|
|
685
|
+
|
|
686
|
+
```text
|
|
687
|
+
child
|
|
688
|
+
↓
|
|
689
|
+
parent
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
should feel directionally related.
|
|
693
|
+
|
|
694
|
+
---
|
|
695
|
+
|
|
696
|
+
# 33. TAB TRANSITIONS
|
|
697
|
+
|
|
698
|
+
Tab switching generally does not need elaborate navigation animation.
|
|
699
|
+
|
|
700
|
+
Prioritize:
|
|
701
|
+
|
|
702
|
+
```text
|
|
703
|
+
selection feedback
|
|
704
|
+
content continuity
|
|
705
|
+
speed
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
Do not make users watch a cinematic transition every time they switch tabs.
|
|
709
|
+
|
|
710
|
+
---
|
|
711
|
+
|
|
712
|
+
# 34. CAROUSEL MOTION
|
|
713
|
+
|
|
714
|
+
Carousel interactions should communicate:
|
|
715
|
+
|
|
716
|
+
```text
|
|
717
|
+
current item
|
|
718
|
+
adjacent items
|
|
719
|
+
direction
|
|
720
|
+
position
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
Motion should follow the user's drag.
|
|
724
|
+
|
|
725
|
+
---
|
|
726
|
+
|
|
727
|
+
# 35. LIST INSERTION
|
|
728
|
+
|
|
729
|
+
When a new list item appears:
|
|
730
|
+
|
|
731
|
+
```text
|
|
732
|
+
new item
|
|
733
|
+
↓
|
|
734
|
+
insert
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
Subtle movement of neighboring items can communicate where it came from.
|
|
738
|
+
|
|
739
|
+
Avoid animating huge lists unnecessarily.
|
|
740
|
+
|
|
741
|
+
---
|
|
742
|
+
|
|
743
|
+
# 36. LIST REMOVAL
|
|
744
|
+
|
|
745
|
+
When an item is removed:
|
|
746
|
+
|
|
747
|
+
```text
|
|
748
|
+
item
|
|
749
|
+
↓
|
|
750
|
+
remove
|
|
751
|
+
↓
|
|
752
|
+
remaining items
|
|
753
|
+
move naturally
|
|
754
|
+
```
|
|
755
|
+
|
|
756
|
+
This helps the user understand that the layout changed.
|
|
757
|
+
|
|
758
|
+
---
|
|
759
|
+
|
|
760
|
+
# 37. REORDER MOTION
|
|
761
|
+
|
|
762
|
+
During reordering:
|
|
763
|
+
|
|
764
|
+
```text
|
|
765
|
+
dragged item
|
|
766
|
+
↓
|
|
767
|
+
moves with finger
|
|
768
|
+
|
|
769
|
+
neighbors
|
|
770
|
+
↓
|
|
771
|
+
shift to create space
|
|
772
|
+
```
|
|
773
|
+
|
|
774
|
+
This creates a clear spatial model.
|
|
775
|
+
|
|
776
|
+
---
|
|
777
|
+
|
|
778
|
+
# 38. ADDITIVE MOTION
|
|
779
|
+
|
|
780
|
+
When content appears, do not necessarily animate the entire screen.
|
|
781
|
+
|
|
782
|
+
Prefer:
|
|
783
|
+
|
|
784
|
+
```text
|
|
785
|
+
affected region
|
|
786
|
+
↓
|
|
787
|
+
subtle transition
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
This reduces visual noise.
|
|
791
|
+
|
|
792
|
+
---
|
|
793
|
+
|
|
794
|
+
# 39. MICRO-INTERACTIONS
|
|
795
|
+
|
|
796
|
+
Micro-interactions are small moments of feedback.
|
|
797
|
+
|
|
798
|
+
Examples:
|
|
799
|
+
|
|
800
|
+
```text
|
|
801
|
+
favorite
|
|
802
|
+
toggle
|
|
803
|
+
copy
|
|
804
|
+
download
|
|
805
|
+
play
|
|
806
|
+
selection
|
|
807
|
+
success
|
|
808
|
+
```
|
|
809
|
+
|
|
810
|
+
They should reinforce meaning.
|
|
811
|
+
|
|
812
|
+
---
|
|
813
|
+
|
|
814
|
+
# 40. FAVORITE ANIMATION
|
|
815
|
+
|
|
816
|
+
A favorite action may use:
|
|
817
|
+
|
|
818
|
+
```text
|
|
819
|
+
unselected
|
|
820
|
+
↓
|
|
821
|
+
selected
|
|
822
|
+
↓
|
|
823
|
+
subtle scale/emphasis
|
|
824
|
+
```
|
|
825
|
+
|
|
826
|
+
The animation should support the state change.
|
|
827
|
+
|
|
828
|
+
Do not turn every favorite tap into a large celebration.
|
|
829
|
+
|
|
830
|
+
---
|
|
831
|
+
|
|
832
|
+
# 41. TOGGLE MOTION
|
|
833
|
+
|
|
834
|
+
A toggle should visually communicate:
|
|
835
|
+
|
|
836
|
+
```text
|
|
837
|
+
OFF
|
|
838
|
+
↓
|
|
839
|
+
transition
|
|
840
|
+
↓
|
|
841
|
+
ON
|
|
842
|
+
```
|
|
843
|
+
|
|
844
|
+
The moving control provides a clear state transition.
|
|
845
|
+
|
|
846
|
+
---
|
|
847
|
+
|
|
848
|
+
# 42. ICON MORPHING
|
|
849
|
+
|
|
850
|
+
Icons can transition between related states.
|
|
851
|
+
|
|
852
|
+
Examples:
|
|
853
|
+
|
|
854
|
+
```text
|
|
855
|
+
play
|
|
856
|
+
↓
|
|
857
|
+
pause
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
```text
|
|
861
|
+
menu
|
|
862
|
+
↓
|
|
863
|
+
close
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
```text
|
|
867
|
+
plus
|
|
868
|
+
↓
|
|
869
|
+
check
|
|
870
|
+
```
|
|
871
|
+
|
|
872
|
+
Use morphing when the relationship is obvious.
|
|
873
|
+
|
|
874
|
+
---
|
|
875
|
+
|
|
876
|
+
# 43. ICON ANIMATION
|
|
877
|
+
|
|
878
|
+
Do not animate icons continuously without purpose.
|
|
879
|
+
|
|
880
|
+
Bad:
|
|
881
|
+
|
|
882
|
+
```text
|
|
883
|
+
every icon
|
|
884
|
+
↓
|
|
885
|
+
constant movement
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
Good:
|
|
889
|
+
|
|
890
|
+
```text
|
|
891
|
+
state changes
|
|
892
|
+
↓
|
|
893
|
+
icon responds
|
|
894
|
+
```
|
|
895
|
+
|
|
896
|
+
---
|
|
897
|
+
|
|
898
|
+
# 44. SUCCESS MOTION
|
|
899
|
+
|
|
900
|
+
Success feedback should be proportional to the action.
|
|
901
|
+
|
|
902
|
+
Small action:
|
|
903
|
+
|
|
904
|
+
```text
|
|
905
|
+
subtle confirmation
|
|
906
|
+
```
|
|
907
|
+
|
|
908
|
+
Major workflow:
|
|
909
|
+
|
|
910
|
+
```text
|
|
911
|
+
stronger completion feedback
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
Do not celebrate every checkbox.
|
|
915
|
+
|
|
916
|
+
---
|
|
917
|
+
|
|
918
|
+
# 45. ERROR MOTION
|
|
919
|
+
|
|
920
|
+
Error feedback can use subtle motion to attract attention.
|
|
921
|
+
|
|
922
|
+
Examples:
|
|
923
|
+
|
|
924
|
+
```text
|
|
925
|
+
field
|
|
926
|
+
↓
|
|
927
|
+
validation state
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
or:
|
|
931
|
+
|
|
932
|
+
```text
|
|
933
|
+
invalid action
|
|
934
|
+
↓
|
|
935
|
+
small corrective motion
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
Avoid aggressive shaking.
|
|
939
|
+
|
|
940
|
+
---
|
|
941
|
+
|
|
942
|
+
# 46. ATTENTION MOTION
|
|
943
|
+
|
|
944
|
+
Motion may attract attention to something important.
|
|
945
|
+
|
|
946
|
+
Use sparingly.
|
|
947
|
+
|
|
948
|
+
Attention should be:
|
|
949
|
+
|
|
950
|
+
```text
|
|
951
|
+
meaningful
|
|
952
|
+
temporary
|
|
953
|
+
non-disruptive
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
If everything moves, nothing receives attention.
|
|
957
|
+
|
|
958
|
+
---
|
|
959
|
+
|
|
960
|
+
# 47. LOADING MOTION
|
|
961
|
+
|
|
962
|
+
Loading motion communicates activity.
|
|
963
|
+
|
|
964
|
+
Possible patterns:
|
|
965
|
+
|
|
966
|
+
```text
|
|
967
|
+
spinner
|
|
968
|
+
progress
|
|
969
|
+
skeleton
|
|
970
|
+
shimmer
|
|
971
|
+
animated placeholder
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
Choose based on operation semantics.
|
|
975
|
+
|
|
976
|
+
---
|
|
977
|
+
|
|
978
|
+
# 48. SKELETON MOTION
|
|
979
|
+
|
|
980
|
+
Skeleton animation can communicate that content is loading.
|
|
981
|
+
|
|
982
|
+
However:
|
|
983
|
+
|
|
984
|
+
```text
|
|
985
|
+
static skeleton
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
may be preferable when:
|
|
989
|
+
|
|
990
|
+
* loading is brief
|
|
991
|
+
* animation would add distraction
|
|
992
|
+
* reduced motion is preferred
|
|
993
|
+
|
|
994
|
+
---
|
|
995
|
+
|
|
996
|
+
# 49. SHIMMER
|
|
997
|
+
|
|
998
|
+
Shimmer should be used carefully.
|
|
999
|
+
|
|
1000
|
+
Avoid:
|
|
1001
|
+
|
|
1002
|
+
```text
|
|
1003
|
+
high-frequency shimmer
|
|
1004
|
+
bright movement
|
|
1005
|
+
large animated regions
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
It can become visual noise.
|
|
1009
|
+
|
|
1010
|
+
---
|
|
1011
|
+
|
|
1012
|
+
# 50. PROGRESS MOTION
|
|
1013
|
+
|
|
1014
|
+
Progress should reflect actual work whenever possible.
|
|
1015
|
+
|
|
1016
|
+
Bad:
|
|
1017
|
+
|
|
1018
|
+
```text
|
|
1019
|
+
fake progress
|
|
1020
|
+
0%
|
|
1021
|
+
→ 30%
|
|
1022
|
+
→ 80%
|
|
1023
|
+
→ 99%
|
|
1024
|
+
→ waits
|
|
1025
|
+
```
|
|
1026
|
+
|
|
1027
|
+
Better:
|
|
1028
|
+
|
|
1029
|
+
```text
|
|
1030
|
+
real progress
|
|
1031
|
+
```
|
|
1032
|
+
|
|
1033
|
+
or:
|
|
1034
|
+
|
|
1035
|
+
```text
|
|
1036
|
+
honest indeterminate progress
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
---
|
|
1040
|
+
|
|
1041
|
+
# 51. INDETERMINATE MOTION
|
|
1042
|
+
|
|
1043
|
+
If progress cannot be known:
|
|
1044
|
+
|
|
1045
|
+
```text
|
|
1046
|
+
use indeterminate feedback
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
Do not invent fake percentages merely to make the UI look active.
|
|
1050
|
+
|
|
1051
|
+
---
|
|
1052
|
+
|
|
1053
|
+
# 52. MOTION AND PERFORMANCE
|
|
1054
|
+
|
|
1055
|
+
Motion must remain smooth.
|
|
1056
|
+
|
|
1057
|
+
Avoid animation strategies that cause:
|
|
1058
|
+
|
|
1059
|
+
```text
|
|
1060
|
+
frame drops
|
|
1061
|
+
layout thrashing
|
|
1062
|
+
heavy JS work
|
|
1063
|
+
large image decoding
|
|
1064
|
+
excessive blur
|
|
1065
|
+
unnecessary rendering
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
A beautiful animation that stutters is not premium.
|
|
1069
|
+
|
|
1070
|
+
---
|
|
1071
|
+
|
|
1072
|
+
# 53. MAIN THREAD / UI THREAD
|
|
1073
|
+
|
|
1074
|
+
Animations should be designed so that expensive application work does not
|
|
1075
|
+
unnecessarily block visual updates.
|
|
1076
|
+
|
|
1077
|
+
In React Native environments, prefer animation approaches that can execute
|
|
1078
|
+
efficiently and minimize JS-thread dependency for high-frequency gestures.
|
|
1079
|
+
|
|
1080
|
+
---
|
|
1081
|
+
|
|
1082
|
+
# 54. LAYOUT ANIMATION
|
|
1083
|
+
|
|
1084
|
+
Animating layout changes can be useful.
|
|
1085
|
+
|
|
1086
|
+
Example:
|
|
1087
|
+
|
|
1088
|
+
```text
|
|
1089
|
+
collapsed section
|
|
1090
|
+
↓
|
|
1091
|
+
expanded section
|
|
1092
|
+
```
|
|
1093
|
+
|
|
1094
|
+
But avoid animating huge layout trees without reason.
|
|
1095
|
+
|
|
1096
|
+
---
|
|
1097
|
+
|
|
1098
|
+
# 55. OPACITY
|
|
1099
|
+
|
|
1100
|
+
Opacity animations are cheap conceptually but should still be used carefully.
|
|
1101
|
+
|
|
1102
|
+
Do not fade large amounts of content simply because fading is easy.
|
|
1103
|
+
|
|
1104
|
+
Ask whether the transition needs spatial meaning.
|
|
1105
|
+
|
|
1106
|
+
---
|
|
1107
|
+
|
|
1108
|
+
# 56. BLUR + MOTION
|
|
1109
|
+
|
|
1110
|
+
Blur can amplify perceived sophistication but is expensive and visually
|
|
1111
|
+
strong.
|
|
1112
|
+
|
|
1113
|
+
Use blur motion carefully:
|
|
1114
|
+
|
|
1115
|
+
```text
|
|
1116
|
+
blur changes
|
|
1117
|
+
↓
|
|
1118
|
+
meaningful presentation change
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
Do not animate heavy blur continuously.
|
|
1122
|
+
|
|
1123
|
+
---
|
|
1124
|
+
|
|
1125
|
+
# 57. PARALLAX
|
|
1126
|
+
|
|
1127
|
+
Parallax can create depth.
|
|
1128
|
+
|
|
1129
|
+
Use only when:
|
|
1130
|
+
|
|
1131
|
+
```text
|
|
1132
|
+
depth relationship
|
|
1133
|
+
```
|
|
1134
|
+
|
|
1135
|
+
is meaningful.
|
|
1136
|
+
|
|
1137
|
+
Avoid excessive parallax that makes content move independently of the user's
|
|
1138
|
+
intent.
|
|
1139
|
+
|
|
1140
|
+
---
|
|
1141
|
+
|
|
1142
|
+
# 58. DEPTH
|
|
1143
|
+
|
|
1144
|
+
Motion can communicate depth.
|
|
1145
|
+
|
|
1146
|
+
Example:
|
|
1147
|
+
|
|
1148
|
+
```text
|
|
1149
|
+
foreground
|
|
1150
|
+
↓
|
|
1151
|
+
moves more
|
|
1152
|
+
|
|
1153
|
+
background
|
|
1154
|
+
↓
|
|
1155
|
+
moves less
|
|
1156
|
+
```
|
|
1157
|
+
|
|
1158
|
+
Use subtle differences.
|
|
1159
|
+
|
|
1160
|
+
---
|
|
1161
|
+
|
|
1162
|
+
# 59. MOTION DIRECTION
|
|
1163
|
+
|
|
1164
|
+
Direction should follow semantic relationships.
|
|
1165
|
+
|
|
1166
|
+
Examples:
|
|
1167
|
+
|
|
1168
|
+
```text
|
|
1169
|
+
open
|
|
1170
|
+
↓
|
|
1171
|
+
forward
|
|
1172
|
+
|
|
1173
|
+
dismiss
|
|
1174
|
+
↓
|
|
1175
|
+
back
|
|
1176
|
+
|
|
1177
|
+
expand
|
|
1178
|
+
↓
|
|
1179
|
+
outward
|
|
1180
|
+
|
|
1181
|
+
collapse
|
|
1182
|
+
↓
|
|
1183
|
+
inward
|
|
1184
|
+
```
|
|
1185
|
+
|
|
1186
|
+
The exact direction depends on the interaction model.
|
|
1187
|
+
|
|
1188
|
+
---
|
|
1189
|
+
|
|
1190
|
+
# 60. MOTION CONSISTENCY
|
|
1191
|
+
|
|
1192
|
+
If two components perform the same conceptual transition, their motion should
|
|
1193
|
+
feel related.
|
|
1194
|
+
|
|
1195
|
+
Example:
|
|
1196
|
+
|
|
1197
|
+
```text
|
|
1198
|
+
all sheets
|
|
1199
|
+
↓
|
|
1200
|
+
similar presentation behavior
|
|
1201
|
+
```
|
|
1202
|
+
|
|
1203
|
+
Do not make every component invent its own physics.
|
|
1204
|
+
|
|
1205
|
+
---
|
|
1206
|
+
|
|
1207
|
+
# 61. MOTION TOKENS
|
|
1208
|
+
|
|
1209
|
+
A design system should define reusable motion tokens.
|
|
1210
|
+
|
|
1211
|
+
Conceptually:
|
|
1212
|
+
|
|
1213
|
+
```text
|
|
1214
|
+
motion.fast
|
|
1215
|
+
motion.standard
|
|
1216
|
+
motion.slow
|
|
1217
|
+
|
|
1218
|
+
spring.responsive
|
|
1219
|
+
spring.standard
|
|
1220
|
+
spring.gentle
|
|
1221
|
+
|
|
1222
|
+
easing.standard
|
|
1223
|
+
easing.emphasized
|
|
1224
|
+
```
|
|
1225
|
+
|
|
1226
|
+
Use semantic names rather than scattering raw durations everywhere.
|
|
1227
|
+
|
|
1228
|
+
---
|
|
1229
|
+
|
|
1230
|
+
# 62. DURATION
|
|
1231
|
+
|
|
1232
|
+
Duration should correspond to:
|
|
1233
|
+
|
|
1234
|
+
```text
|
|
1235
|
+
distance
|
|
1236
|
+
importance
|
|
1237
|
+
interaction
|
|
1238
|
+
```
|
|
1239
|
+
|
|
1240
|
+
Short transitions are usually appropriate for micro-interactions.
|
|
1241
|
+
|
|
1242
|
+
Longer transitions may be justified for major spatial changes.
|
|
1243
|
+
|
|
1244
|
+
Do not create a universal duration for every animation.
|
|
1245
|
+
|
|
1246
|
+
---
|
|
1247
|
+
|
|
1248
|
+
# 63. EASING
|
|
1249
|
+
|
|
1250
|
+
Easing should communicate physical behavior.
|
|
1251
|
+
|
|
1252
|
+
Avoid arbitrary combinations.
|
|
1253
|
+
|
|
1254
|
+
Use consistent easing families throughout the product.
|
|
1255
|
+
|
|
1256
|
+
---
|
|
1257
|
+
|
|
1258
|
+
# 64. MOTION SCALE
|
|
1259
|
+
|
|
1260
|
+
A useful conceptual scale:
|
|
1261
|
+
|
|
1262
|
+
```text
|
|
1263
|
+
MICRO
|
|
1264
|
+
50–150ms range
|
|
1265
|
+
|
|
1266
|
+
SMALL
|
|
1267
|
+
150–250ms range
|
|
1268
|
+
|
|
1269
|
+
MEDIUM
|
|
1270
|
+
250–400ms range
|
|
1271
|
+
|
|
1272
|
+
LARGE
|
|
1273
|
+
400ms+
|
|
1274
|
+
```
|
|
1275
|
+
|
|
1276
|
+
These are design heuristics, not absolute platform requirements.
|
|
1277
|
+
|
|
1278
|
+
The actual value should depend on context and perceived responsiveness.
|
|
1279
|
+
|
|
1280
|
+
---
|
|
1281
|
+
|
|
1282
|
+
# 65. DO NOT CHASE NUMBERS
|
|
1283
|
+
|
|
1284
|
+
Never optimize motion purely around:
|
|
1285
|
+
|
|
1286
|
+
```text
|
|
1287
|
+
"Apple uses exactly X milliseconds"
|
|
1288
|
+
```
|
|
1289
|
+
|
|
1290
|
+
Perceived quality depends on:
|
|
1291
|
+
|
|
1292
|
+
```text
|
|
1293
|
+
distance
|
|
1294
|
+
velocity
|
|
1295
|
+
easing
|
|
1296
|
+
physics
|
|
1297
|
+
content
|
|
1298
|
+
interaction
|
|
1299
|
+
device performance
|
|
1300
|
+
```
|
|
1301
|
+
|
|
1302
|
+
---
|
|
1303
|
+
|
|
1304
|
+
# 66. MOTION RESPONSIVENESS
|
|
1305
|
+
|
|
1306
|
+
Interactive motion should feel:
|
|
1307
|
+
|
|
1308
|
+
```text
|
|
1309
|
+
immediate
|
|
1310
|
+
```
|
|
1311
|
+
|
|
1312
|
+
rather than:
|
|
1313
|
+
|
|
1314
|
+
```text
|
|
1315
|
+
gesture
|
|
1316
|
+
↓
|
|
1317
|
+
delay
|
|
1318
|
+
↓
|
|
1319
|
+
animation
|
|
1320
|
+
```
|
|
1321
|
+
|
|
1322
|
+
especially for direct manipulation.
|
|
1323
|
+
|
|
1324
|
+
---
|
|
1325
|
+
|
|
1326
|
+
# 67. MOTION AND TOUCH
|
|
1327
|
+
|
|
1328
|
+
Touch-controlled objects should generally track the finger closely.
|
|
1329
|
+
|
|
1330
|
+
If an object lags noticeably behind the gesture, the interface feels broken.
|
|
1331
|
+
|
|
1332
|
+
---
|
|
1333
|
+
|
|
1334
|
+
# 68. MOTION AND VELOCITY
|
|
1335
|
+
|
|
1336
|
+
Velocity can communicate intention.
|
|
1337
|
+
|
|
1338
|
+
Example:
|
|
1339
|
+
|
|
1340
|
+
```text
|
|
1341
|
+
slow drag
|
|
1342
|
+
↓
|
|
1343
|
+
user may be positioning
|
|
1344
|
+
|
|
1345
|
+
fast swipe
|
|
1346
|
+
↓
|
|
1347
|
+
user may be dismissing
|
|
1348
|
+
```
|
|
1349
|
+
|
|
1350
|
+
Use velocity carefully.
|
|
1351
|
+
|
|
1352
|
+
Do not make interactions impossible to predict.
|
|
1353
|
+
|
|
1354
|
+
---
|
|
1355
|
+
|
|
1356
|
+
# 69. CANCELLED MOTION
|
|
1357
|
+
|
|
1358
|
+
When the user reverses direction:
|
|
1359
|
+
|
|
1360
|
+
```text
|
|
1361
|
+
gesture
|
|
1362
|
+
↓
|
|
1363
|
+
movement
|
|
1364
|
+
↓
|
|
1365
|
+
reverse
|
|
1366
|
+
↓
|
|
1367
|
+
object follows
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1370
|
+
The interface should respond naturally.
|
|
1371
|
+
|
|
1372
|
+
Avoid restarting an unrelated animation from the beginning.
|
|
1373
|
+
|
|
1374
|
+
---
|
|
1375
|
+
|
|
1376
|
+
# 70. MOTION INTERRUPTION
|
|
1377
|
+
|
|
1378
|
+
All important animations should consider:
|
|
1379
|
+
|
|
1380
|
+
```text
|
|
1381
|
+
user interruption
|
|
1382
|
+
navigation interruption
|
|
1383
|
+
backgrounding
|
|
1384
|
+
state changes
|
|
1385
|
+
errors
|
|
1386
|
+
```
|
|
1387
|
+
|
|
1388
|
+
Motion should not become the source of incorrect state.
|
|
1389
|
+
|
|
1390
|
+
---
|
|
1391
|
+
|
|
1392
|
+
# 71. STATE FIRST, ANIMATION SECOND
|
|
1393
|
+
|
|
1394
|
+
The underlying application state must not depend on an animation completing.
|
|
1395
|
+
|
|
1396
|
+
Prefer:
|
|
1397
|
+
|
|
1398
|
+
```text
|
|
1399
|
+
state changes
|
|
1400
|
+
↓
|
|
1401
|
+
animation visualizes change
|
|
1402
|
+
```
|
|
1403
|
+
|
|
1404
|
+
not:
|
|
1405
|
+
|
|
1406
|
+
```text
|
|
1407
|
+
animation completes
|
|
1408
|
+
↓
|
|
1409
|
+
state finally changes
|
|
1410
|
+
```
|
|
1411
|
+
|
|
1412
|
+
unless the interaction specifically requires deferred commitment.
|
|
1413
|
+
|
|
1414
|
+
---
|
|
1415
|
+
|
|
1416
|
+
# 72. ANIMATION FAILURE
|
|
1417
|
+
|
|
1418
|
+
If animation is skipped or interrupted:
|
|
1419
|
+
|
|
1420
|
+
```text
|
|
1421
|
+
final state
|
|
1422
|
+
```
|
|
1423
|
+
|
|
1424
|
+
must still be correct.
|
|
1425
|
+
|
|
1426
|
+
Motion is presentation.
|
|
1427
|
+
|
|
1428
|
+
It should not be the source of truth.
|
|
1429
|
+
|
|
1430
|
+
---
|
|
1431
|
+
|
|
1432
|
+
# 73. REDUCED MOTION
|
|
1433
|
+
|
|
1434
|
+
Respect reduced-motion preferences.
|
|
1435
|
+
|
|
1436
|
+
When reduced motion is enabled:
|
|
1437
|
+
|
|
1438
|
+
Prefer:
|
|
1439
|
+
|
|
1440
|
+
```text
|
|
1441
|
+
crossfade
|
|
1442
|
+
instant state change
|
|
1443
|
+
subtle opacity
|
|
1444
|
+
minimal movement
|
|
1445
|
+
```
|
|
1446
|
+
|
|
1447
|
+
over:
|
|
1448
|
+
|
|
1449
|
+
```text
|
|
1450
|
+
large transforms
|
|
1451
|
+
parallax
|
|
1452
|
+
complex spring sequences
|
|
1453
|
+
rapid animation
|
|
1454
|
+
```
|
|
1455
|
+
|
|
1456
|
+
---
|
|
1457
|
+
|
|
1458
|
+
# 74. REDUCED MOTION DOES NOT MEAN NO FEEDBACK
|
|
1459
|
+
|
|
1460
|
+
Users still need:
|
|
1461
|
+
|
|
1462
|
+
```text
|
|
1463
|
+
state
|
|
1464
|
+
hierarchy
|
|
1465
|
+
completion
|
|
1466
|
+
navigation context
|
|
1467
|
+
```
|
|
1468
|
+
|
|
1469
|
+
Replace motion with alternative visual cues where necessary.
|
|
1470
|
+
|
|
1471
|
+
---
|
|
1472
|
+
|
|
1473
|
+
# 75. ACCESSIBLE MOTION
|
|
1474
|
+
|
|
1475
|
+
Avoid motion that:
|
|
1476
|
+
|
|
1477
|
+
```text
|
|
1478
|
+
causes disorientation
|
|
1479
|
+
creates unnecessary flashing
|
|
1480
|
+
conveys essential meaning without alternatives
|
|
1481
|
+
```
|
|
1482
|
+
|
|
1483
|
+
Motion should enhance comprehension, not become a barrier.
|
|
1484
|
+
|
|
1485
|
+
---
|
|
1486
|
+
|
|
1487
|
+
# 76. MOTION ONBOARDING
|
|
1488
|
+
|
|
1489
|
+
If an interaction is unusual:
|
|
1490
|
+
|
|
1491
|
+
```text
|
|
1492
|
+
show
|
|
1493
|
+
hint
|
|
1494
|
+
demonstrate
|
|
1495
|
+
```
|
|
1496
|
+
|
|
1497
|
+
once if necessary.
|
|
1498
|
+
|
|
1499
|
+
Do not repeatedly animate tutorial hints after the user understands them.
|
|
1500
|
+
|
|
1501
|
+
---
|
|
1502
|
+
|
|
1503
|
+
# 77. MOTION + SOUND
|
|
1504
|
+
|
|
1505
|
+
Audio feedback can complement motion in media applications.
|
|
1506
|
+
|
|
1507
|
+
However:
|
|
1508
|
+
|
|
1509
|
+
```text
|
|
1510
|
+
visual
|
|
1511
|
+
+
|
|
1512
|
+
audio
|
|
1513
|
+
+
|
|
1514
|
+
haptic
|
|
1515
|
+
```
|
|
1516
|
+
|
|
1517
|
+
should not all fire for every interaction.
|
|
1518
|
+
|
|
1519
|
+
Choose feedback intentionally.
|
|
1520
|
+
|
|
1521
|
+
---
|
|
1522
|
+
|
|
1523
|
+
# 78. MOTION + HAPTICS
|
|
1524
|
+
|
|
1525
|
+
A strong tactile interaction may combine:
|
|
1526
|
+
|
|
1527
|
+
```text
|
|
1528
|
+
gesture
|
|
1529
|
+
+
|
|
1530
|
+
visual response
|
|
1531
|
+
+
|
|
1532
|
+
subtle haptic
|
|
1533
|
+
```
|
|
1534
|
+
|
|
1535
|
+
Example:
|
|
1536
|
+
|
|
1537
|
+
```text
|
|
1538
|
+
drag reorder
|
|
1539
|
+
↓
|
|
1540
|
+
item lifts
|
|
1541
|
+
↓
|
|
1542
|
+
threshold crossed
|
|
1543
|
+
↓
|
|
1544
|
+
subtle haptic
|
|
1545
|
+
```
|
|
1546
|
+
|
|
1547
|
+
The haptic reinforces a meaningful transition.
|
|
1548
|
+
|
|
1549
|
+
---
|
|
1550
|
+
|
|
1551
|
+
# 79. MOTION AND BRAND
|
|
1552
|
+
|
|
1553
|
+
Brand personality can influence motion.
|
|
1554
|
+
|
|
1555
|
+
Possible characteristics:
|
|
1556
|
+
|
|
1557
|
+
```text
|
|
1558
|
+
calm
|
|
1559
|
+
precise
|
|
1560
|
+
playful
|
|
1561
|
+
energetic
|
|
1562
|
+
luxurious
|
|
1563
|
+
technical
|
|
1564
|
+
minimal
|
|
1565
|
+
```
|
|
1566
|
+
|
|
1567
|
+
But brand motion must still respect usability.
|
|
1568
|
+
|
|
1569
|
+
---
|
|
1570
|
+
|
|
1571
|
+
# 80. PREMIUM MOTION
|
|
1572
|
+
|
|
1573
|
+
Premium motion generally feels:
|
|
1574
|
+
|
|
1575
|
+
```text
|
|
1576
|
+
intentional
|
|
1577
|
+
fast
|
|
1578
|
+
smooth
|
|
1579
|
+
physical
|
|
1580
|
+
quiet
|
|
1581
|
+
responsive
|
|
1582
|
+
consistent
|
|
1583
|
+
```
|
|
1584
|
+
|
|
1585
|
+
Not:
|
|
1586
|
+
|
|
1587
|
+
```text
|
|
1588
|
+
slow
|
|
1589
|
+
flashy
|
|
1590
|
+
constant
|
|
1591
|
+
random
|
|
1592
|
+
excessive
|
|
1593
|
+
```
|
|
1594
|
+
|
|
1595
|
+
---
|
|
1596
|
+
|
|
1597
|
+
# 81. MOTION ANTI-PATTERNS
|
|
1598
|
+
|
|
1599
|
+
Avoid:
|
|
1600
|
+
|
|
1601
|
+
```text
|
|
1602
|
+
everything fades
|
|
1603
|
+
everything bounces
|
|
1604
|
+
everything scales
|
|
1605
|
+
everything springs
|
|
1606
|
+
everything slides
|
|
1607
|
+
everything has parallax
|
|
1608
|
+
everything has blur
|
|
1609
|
+
everything animates simultaneously
|
|
1610
|
+
```
|
|
1611
|
+
|
|
1612
|
+
Animation is hierarchy.
|
|
1613
|
+
|
|
1614
|
+
If everything moves, nothing is important.
|
|
1615
|
+
|
|
1616
|
+
---
|
|
1617
|
+
|
|
1618
|
+
# 82. MOTION REVIEW
|
|
1619
|
+
|
|
1620
|
+
For every animation ask:
|
|
1621
|
+
|
|
1622
|
+
```text
|
|
1623
|
+
Why does this animate?
|
|
1624
|
+
|
|
1625
|
+
What does the motion communicate?
|
|
1626
|
+
|
|
1627
|
+
Is the direction meaningful?
|
|
1628
|
+
|
|
1629
|
+
Can the user interrupt it?
|
|
1630
|
+
|
|
1631
|
+
Does it remain smooth?
|
|
1632
|
+
|
|
1633
|
+
Does it respect reduced motion?
|
|
1634
|
+
|
|
1635
|
+
Does it preserve state?
|
|
1636
|
+
|
|
1637
|
+
Is the animation necessary?
|
|
1638
|
+
```
|
|
1639
|
+
|
|
1640
|
+
---
|
|
1641
|
+
|
|
1642
|
+
# 83. MOTION TEST
|
|
1643
|
+
|
|
1644
|
+
Disable animations temporarily.
|
|
1645
|
+
|
|
1646
|
+
Ask:
|
|
1647
|
+
|
|
1648
|
+
```text
|
|
1649
|
+
Does the interface still make sense?
|
|
1650
|
+
```
|
|
1651
|
+
|
|
1652
|
+
If no:
|
|
1653
|
+
|
|
1654
|
+
The design may be relying too heavily on motion to communicate structure.
|
|
1655
|
+
|
|
1656
|
+
---
|
|
1657
|
+
|
|
1658
|
+
# 84. MOTION TEST 2
|
|
1659
|
+
|
|
1660
|
+
Watch the interface with sound off.
|
|
1661
|
+
|
|
1662
|
+
Then:
|
|
1663
|
+
|
|
1664
|
+
```text
|
|
1665
|
+
watch without reading labels
|
|
1666
|
+
```
|
|
1667
|
+
|
|
1668
|
+
Can motion still communicate:
|
|
1669
|
+
|
|
1670
|
+
```text
|
|
1671
|
+
what changed?
|
|
1672
|
+
```
|
|
1673
|
+
|
|
1674
|
+
If yes, the motion is probably meaningful.
|
|
1675
|
+
|
|
1676
|
+
---
|
|
1677
|
+
|
|
1678
|
+
# 85. MOTION TEST 3
|
|
1679
|
+
|
|
1680
|
+
Perform the same action repeatedly.
|
|
1681
|
+
|
|
1682
|
+
Ask:
|
|
1683
|
+
|
|
1684
|
+
```text
|
|
1685
|
+
Does the animation remain pleasant?
|
|
1686
|
+
```
|
|
1687
|
+
|
|
1688
|
+
A beautiful one-time animation may become annoying after the 100th repetition.
|
|
1689
|
+
|
|
1690
|
+
Routine interactions require restraint.
|
|
1691
|
+
|
|
1692
|
+
---
|
|
1693
|
+
|
|
1694
|
+
# 86. MOTION TEST 4
|
|
1695
|
+
|
|
1696
|
+
Interrupt everything.
|
|
1697
|
+
|
|
1698
|
+
Test:
|
|
1699
|
+
|
|
1700
|
+
```text
|
|
1701
|
+
start animation
|
|
1702
|
+
↓
|
|
1703
|
+
reverse
|
|
1704
|
+
↓
|
|
1705
|
+
navigate away
|
|
1706
|
+
↓
|
|
1707
|
+
background app
|
|
1708
|
+
↓
|
|
1709
|
+
return
|
|
1710
|
+
```
|
|
1711
|
+
|
|
1712
|
+
The final state must remain correct.
|
|
1713
|
+
|
|
1714
|
+
---
|
|
1715
|
+
|
|
1716
|
+
# 87. AGENT MOTION DECISION MODEL
|
|
1717
|
+
|
|
1718
|
+
When adding motion:
|
|
1719
|
+
|
|
1720
|
+
```text
|
|
1721
|
+
USER ACTION
|
|
1722
|
+
↓
|
|
1723
|
+
WHAT CHANGED?
|
|
1724
|
+
↓
|
|
1725
|
+
IS SPATIAL CONTINUITY IMPORTANT?
|
|
1726
|
+
↓
|
|
1727
|
+
YES → movement/shared transition
|
|
1728
|
+
NO
|
|
1729
|
+
↓
|
|
1730
|
+
IS STATE CHANGE IMPORTANT?
|
|
1731
|
+
↓
|
|
1732
|
+
YES → micro feedback
|
|
1733
|
+
NO
|
|
1734
|
+
↓
|
|
1735
|
+
IS MOTION NEEDED?
|
|
1736
|
+
↓
|
|
1737
|
+
NO → don't animate
|
|
1738
|
+
```
|
|
1739
|
+
|
|
1740
|
+
---
|
|
1741
|
+
|
|
1742
|
+
# 88. MOTION IMPLEMENTATION MODEL
|
|
1743
|
+
|
|
1744
|
+
Conceptually:
|
|
1745
|
+
|
|
1746
|
+
```text
|
|
1747
|
+
STATE
|
|
1748
|
+
↓
|
|
1749
|
+
ANIMATION DRIVER
|
|
1750
|
+
↓
|
|
1751
|
+
VISUAL OUTPUT
|
|
1752
|
+
```
|
|
1753
|
+
|
|
1754
|
+
Not:
|
|
1755
|
+
|
|
1756
|
+
```text
|
|
1757
|
+
animation
|
|
1758
|
+
↓
|
|
1759
|
+
application state
|
|
1760
|
+
```
|
|
1761
|
+
|
|
1762
|
+
State remains authoritative.
|
|
1763
|
+
|
|
1764
|
+
---
|
|
1765
|
+
|
|
1766
|
+
# 89. COMPONENT MOTION API
|
|
1767
|
+
|
|
1768
|
+
Prefer semantic APIs.
|
|
1769
|
+
|
|
1770
|
+
Good:
|
|
1771
|
+
|
|
1772
|
+
```tsx
|
|
1773
|
+
<Sheet
|
|
1774
|
+
presentation="interactive"
|
|
1775
|
+
dismissible
|
|
1776
|
+
/>
|
|
1777
|
+
```
|
|
1778
|
+
|
|
1779
|
+
rather than exposing dozens of raw animation parameters by default.
|
|
1780
|
+
|
|
1781
|
+
---
|
|
1782
|
+
|
|
1783
|
+
# 90. MOTION TOKENS EXAMPLE
|
|
1784
|
+
|
|
1785
|
+
Conceptual design-system structure:
|
|
1786
|
+
|
|
1787
|
+
```ts
|
|
1788
|
+
motion = {
|
|
1789
|
+
duration: {
|
|
1790
|
+
fast: "...",
|
|
1791
|
+
standard: "...",
|
|
1792
|
+
slow: "...",
|
|
1793
|
+
},
|
|
1794
|
+
|
|
1795
|
+
spring: {
|
|
1796
|
+
responsive: {
|
|
1797
|
+
stiffness: "...",
|
|
1798
|
+
damping: "...",
|
|
1799
|
+
},
|
|
1800
|
+
|
|
1801
|
+
gentle: {
|
|
1802
|
+
stiffness: "...",
|
|
1803
|
+
damping: "...",
|
|
1804
|
+
},
|
|
1805
|
+
},
|
|
1806
|
+
|
|
1807
|
+
reducedMotion: {
|
|
1808
|
+
enabled: "...",
|
|
1809
|
+
},
|
|
1810
|
+
}
|
|
1811
|
+
```
|
|
1812
|
+
|
|
1813
|
+
The exact values belong to the implementation layer.
|
|
1814
|
+
|
|
1815
|
+
---
|
|
1816
|
+
|
|
1817
|
+
# 91. MOTION ARCHITECTURE
|
|
1818
|
+
|
|
1819
|
+
A mature application should centralize motion.
|
|
1820
|
+
|
|
1821
|
+
```text
|
|
1822
|
+
design-system/
|
|
1823
|
+
motion/
|
|
1824
|
+
tokens
|
|
1825
|
+
springs
|
|
1826
|
+
transitions
|
|
1827
|
+
gestures
|
|
1828
|
+
reduced-motion
|
|
1829
|
+
```
|
|
1830
|
+
|
|
1831
|
+
Avoid independently invented animation behavior throughout the codebase.
|
|
1832
|
+
|
|
1833
|
+
---
|
|
1834
|
+
|
|
1835
|
+
# 92. REACT NATIVE CONSIDERATION
|
|
1836
|
+
|
|
1837
|
+
For React Native applications:
|
|
1838
|
+
|
|
1839
|
+
Prefer an animation architecture capable of handling:
|
|
1840
|
+
|
|
1841
|
+
```text
|
|
1842
|
+
high-frequency gestures
|
|
1843
|
+
continuous transforms
|
|
1844
|
+
scroll-linked animation
|
|
1845
|
+
spring physics
|
|
1846
|
+
layout transitions
|
|
1847
|
+
```
|
|
1848
|
+
|
|
1849
|
+
without unnecessary dependence on the JavaScript thread.
|
|
1850
|
+
|
|
1851
|
+
---
|
|
1852
|
+
|
|
1853
|
+
# 93. PERFORMANCE RULE
|
|
1854
|
+
|
|
1855
|
+
Never add motion before establishing:
|
|
1856
|
+
|
|
1857
|
+
```text
|
|
1858
|
+
stable rendering
|
|
1859
|
+
efficient lists
|
|
1860
|
+
optimized images
|
|
1861
|
+
controlled state updates
|
|
1862
|
+
appropriate memoization
|
|
1863
|
+
```
|
|
1864
|
+
|
|
1865
|
+
Animation cannot compensate for poor architecture.
|
|
1866
|
+
|
|
1867
|
+
---
|
|
1868
|
+
|
|
1869
|
+
# 94. MOTION BUDGET
|
|
1870
|
+
|
|
1871
|
+
Treat animation as a resource.
|
|
1872
|
+
|
|
1873
|
+
Consider:
|
|
1874
|
+
|
|
1875
|
+
```text
|
|
1876
|
+
number of animated elements
|
|
1877
|
+
animation frequency
|
|
1878
|
+
render cost
|
|
1879
|
+
GPU cost
|
|
1880
|
+
memory pressure
|
|
1881
|
+
battery impact
|
|
1882
|
+
```
|
|
1883
|
+
|
|
1884
|
+
Especially on media-heavy applications.
|
|
1885
|
+
|
|
1886
|
+
---
|
|
1887
|
+
|
|
1888
|
+
# 95. MEDIA APPLICATION MOTION
|
|
1889
|
+
|
|
1890
|
+
For music/video applications:
|
|
1891
|
+
|
|
1892
|
+
```text
|
|
1893
|
+
play/pause
|
|
1894
|
+
seek
|
|
1895
|
+
artwork
|
|
1896
|
+
queue
|
|
1897
|
+
mini-player
|
|
1898
|
+
expanded player
|
|
1899
|
+
lyrics
|
|
1900
|
+
visualizer
|
|
1901
|
+
```
|
|
1902
|
+
|
|
1903
|
+
should feel connected.
|
|
1904
|
+
|
|
1905
|
+
Avoid independent animations that compete for attention.
|
|
1906
|
+
|
|
1907
|
+
---
|
|
1908
|
+
|
|
1909
|
+
# 96. MINI PLAYER → FULL PLAYER
|
|
1910
|
+
|
|
1911
|
+
A strong media pattern:
|
|
1912
|
+
|
|
1913
|
+
```text
|
|
1914
|
+
Mini Player
|
|
1915
|
+
↓
|
|
1916
|
+
user taps
|
|
1917
|
+
↓
|
|
1918
|
+
Full Player
|
|
1919
|
+
```
|
|
1920
|
+
|
|
1921
|
+
Preserve:
|
|
1922
|
+
|
|
1923
|
+
```text
|
|
1924
|
+
artwork
|
|
1925
|
+
track
|
|
1926
|
+
playback state
|
|
1927
|
+
position
|
|
1928
|
+
```
|
|
1929
|
+
|
|
1930
|
+
through the transition.
|
|
1931
|
+
|
|
1932
|
+
---
|
|
1933
|
+
|
|
1934
|
+
# 97. QUEUE MOTION
|
|
1935
|
+
|
|
1936
|
+
When adding a track:
|
|
1937
|
+
|
|
1938
|
+
```text
|
|
1939
|
+
Track
|
|
1940
|
+
↓
|
|
1941
|
+
Queue
|
|
1942
|
+
```
|
|
1943
|
+
|
|
1944
|
+
motion can reinforce where the item went.
|
|
1945
|
+
|
|
1946
|
+
When removing:
|
|
1947
|
+
|
|
1948
|
+
```text
|
|
1949
|
+
Queue item
|
|
1950
|
+
↓
|
|
1951
|
+
removed
|
|
1952
|
+
↓
|
|
1953
|
+
remaining items close gap
|
|
1954
|
+
```
|
|
1955
|
+
|
|
1956
|
+
This communicates the operation.
|
|
1957
|
+
|
|
1958
|
+
---
|
|
1959
|
+
|
|
1960
|
+
# 98. PLAYBACK STATE
|
|
1961
|
+
|
|
1962
|
+
Playback changes should be immediate.
|
|
1963
|
+
|
|
1964
|
+
Example:
|
|
1965
|
+
|
|
1966
|
+
```text
|
|
1967
|
+
paused
|
|
1968
|
+
↓
|
|
1969
|
+
tap play
|
|
1970
|
+
↓
|
|
1971
|
+
icon changes immediately
|
|
1972
|
+
↓
|
|
1973
|
+
audio begins
|
|
1974
|
+
```
|
|
1975
|
+
|
|
1976
|
+
Do not wait for a long animation before updating the primary playback state.
|
|
1977
|
+
|
|
1978
|
+
---
|
|
1979
|
+
|
|
1980
|
+
# 99. FINAL MOTION PRINCIPLE
|
|
1981
|
+
|
|
1982
|
+
Motion should make the interface easier to understand.
|
|
1983
|
+
|
|
1984
|
+
The ideal result is:
|
|
1985
|
+
|
|
1986
|
+
```text
|
|
1987
|
+
User acts
|
|
1988
|
+
↓
|
|
1989
|
+
Interface responds
|
|
1990
|
+
↓
|
|
1991
|
+
User understands
|
|
1992
|
+
↓
|
|
1993
|
+
User continues
|
|
1994
|
+
```
|
|
1995
|
+
|
|
1996
|
+
Not:
|
|
1997
|
+
|
|
1998
|
+
```text
|
|
1999
|
+
User acts
|
|
2000
|
+
↓
|
|
2001
|
+
animation
|
|
2002
|
+
↓
|
|
2003
|
+
animation
|
|
2004
|
+
↓
|
|
2005
|
+
animation
|
|
2006
|
+
↓
|
|
2007
|
+
finally response
|
|
2008
|
+
```
|
|
2009
|
+
|
|
2010
|
+
---
|
|
2011
|
+
|
|
2012
|
+
# 100. QUICK REFERENCE
|
|
2013
|
+
|
|
2014
|
+
```text
|
|
2015
|
+
PURPOSE
|
|
2016
|
+
↓
|
|
2017
|
+
CONTINUITY
|
|
2018
|
+
↓
|
|
2019
|
+
DIRECTION
|
|
2020
|
+
↓
|
|
2021
|
+
PHYSICS
|
|
2022
|
+
↓
|
|
2023
|
+
FEEDBACK
|
|
2024
|
+
↓
|
|
2025
|
+
INTERRUPTION
|
|
2026
|
+
↓
|
|
2027
|
+
ACCESSIBILITY
|
|
2028
|
+
↓
|
|
2029
|
+
PERFORMANCE
|
|
2030
|
+
```
|
|
2031
|
+
|
|
2032
|
+
---
|
|
2033
|
+
|
|
2034
|
+
# 101. FINAL AGENT RULE
|
|
2035
|
+
|
|
2036
|
+
Before adding an animation, the agent must be able to complete:
|
|
2037
|
+
|
|
2038
|
+
> "This animation exists because __________."
|
|
2039
|
+
|
|
2040
|
+
If the answer is:
|
|
2041
|
+
|
|
2042
|
+
```text
|
|
2043
|
+
"It looks cool."
|
|
2044
|
+
```
|
|
2045
|
+
|
|
2046
|
+
the animation should normally be rejected.
|
|
2047
|
+
|
|
2048
|
+
If the answer is:
|
|
2049
|
+
|
|
2050
|
+
```text
|
|
2051
|
+
"It preserves spatial continuity."
|
|
2052
|
+
"It communicates state."
|
|
2053
|
+
"It confirms the interaction."
|
|
2054
|
+
"It shows progress."
|
|
2055
|
+
"It establishes hierarchy."
|
|
2056
|
+
"It explains causality."
|
|
2057
|
+
```
|
|
2058
|
+
|
|
2059
|
+
then the animation has a defensible purpose.
|
|
2060
|
+
|
|
2061
|
+
---
|
|
2062
|
+
|
|
2063
|
+
# 102. SOURCES
|
|
2064
|
+
|
|
2065
|
+
Apple Human Interface Guidelines:
|
|
2066
|
+
|
|
2067
|
+
[https://developer.apple.com/design/human-interface-guidelines/](https://developer.apple.com/design/human-interface-guidelines/)
|
|
2068
|
+
|
|
2069
|
+
Apple Design — Motion:
|
|
2070
|
+
|
|
2071
|
+
[https://developer.apple.com/design/human-interface-guidelines/motion](https://developer.apple.com/design/human-interface-guidelines/motion)
|
|
2072
|
+
|
|
2073
|
+
Apple Developer — SwiftUI Animation:
|
|
2074
|
+
|
|
2075
|
+
[https://developer.apple.com/documentation/swiftui/animation](https://developer.apple.com/documentation/swiftui/animation)
|
|
2076
|
+
|
|
2077
|
+
Apple Developer — Animation:
|
|
2078
|
+
|
|
2079
|
+
[https://developer.apple.com/documentation/swiftui/animating-views-and-transitions](https://developer.apple.com/documentation/swiftui/animating-views-and-transitions)
|
|
2080
|
+
|
|
2081
|
+
Apple Developer — Accessibility:
|
|
2082
|
+
|
|
2083
|
+
[https://developer.apple.com/accessibility/](https://developer.apple.com/accessibility/)
|
|
2084
|
+
|
|
2085
|
+
````
|
|
2086
|
+
|
|
2087
|
+
|