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.
Files changed (123) hide show
  1. package/AGENTS.md +47 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +78 -0
  4. package/bin/cli.mjs +375 -0
  5. package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
  6. package/knowledge/android/accessibility.md +333 -0
  7. package/knowledge/android/components-controls.md +270 -0
  8. package/knowledge/android/material-design-3.md +174 -0
  9. package/knowledge/android/navigation-patterns.md +212 -0
  10. package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
  11. package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
  12. package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
  13. package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
  14. package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
  15. package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
  16. package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
  17. package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
  18. package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
  19. package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
  20. package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
  21. package/knowledge/apple/Interaction-behaviour.md +1378 -0
  22. package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
  23. package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
  24. package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
  25. package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
  26. package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
  27. package/knowledge/apple/Patterns-templates-composition.md +647 -0
  28. package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
  29. package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
  30. package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
  31. package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
  32. package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
  33. package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
  34. package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
  35. package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
  36. package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
  37. package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
  38. package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
  39. package/knowledge/apple/accessibility.md +2162 -0
  40. package/knowledge/apple/color.md +1933 -0
  41. package/knowledge/apple/component-architecture.md +2208 -0
  42. package/knowledge/apple/components.md +2172 -0
  43. package/knowledge/apple/design-decision-framework.md +1883 -0
  44. package/knowledge/apple/design-review-engine.md +2108 -0
  45. package/knowledge/apple/design-tokens.md +1943 -0
  46. package/knowledge/apple/designing-for-ios.md +1680 -0
  47. package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
  48. package/knowledge/apple/hig-foundation.md +1806 -0
  49. package/knowledge/apple/iconography.md +1903 -0
  50. package/knowledge/apple/interaction-patterns.md +2513 -0
  51. package/knowledge/apple/interaction.md +2141 -0
  52. package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
  53. package/knowledge/apple/ios-components-and-controls.md +1634 -0
  54. package/knowledge/apple/ios-components-patterns.md +1343 -0
  55. package/knowledge/apple/ios-design-system-architecture.md +1520 -0
  56. package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
  57. package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
  58. package/knowledge/apple/ios-forms-and-input.md +1458 -0
  59. package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
  60. package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
  61. package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
  62. package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
  63. package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
  64. package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
  65. package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
  66. package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
  67. package/knowledge/apple/ios-search-and-discovery.md +1456 -0
  68. package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
  69. package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
  70. package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
  71. package/knowledge/apple/layout.md +2331 -0
  72. package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
  73. package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
  74. package/knowledge/apple/motion-and-animation.md +1698 -0
  75. package/knowledge/apple/motion.md +2087 -0
  76. package/knowledge/apple/navigation.md +2281 -0
  77. package/knowledge/apple/responsive-adaptive.md +2159 -0
  78. package/knowledge/apple/screen-architecture.md +2067 -0
  79. package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
  80. package/knowledge/apple/typography.md +1802 -0
  81. package/knowledge/apple/ui-ux inteligence audit.md +106 -0
  82. package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
  83. package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
  84. package/knowledge/apple/visual-materials.md +2189 -0
  85. package/package.json +53 -0
  86. package/principles/design-principles.md +37 -0
  87. package/principles/platform-principles.md +25 -0
  88. package/principles/ux-principles.md +16 -0
  89. package/references/official-links.md +11 -0
  90. package/skills/accessibility-engineer/SKILL.md +125 -0
  91. package/skills/analytics-engineer/SKILL.md +283 -0
  92. package/skills/animation-engineer/SKILL.md +316 -0
  93. package/skills/component-designer/SKILL.md +75 -0
  94. package/skills/component-library-engineer/SKILL.md +140 -0
  95. package/skills/component-library-ops/SKILL.md +155 -0
  96. package/skills/design-system/SKILL.md +77 -0
  97. package/skills/design-token-engineer/SKILL.md +203 -0
  98. package/skills/design-token-pipeline/SKILL.md +277 -0
  99. package/skills/device-lab-engineer/SKILL.md +387 -0
  100. package/skills/forms-engineer/SKILL.md +79 -0
  101. package/skills/internationalization-engineer/SKILL.md +256 -0
  102. package/skills/motion-designer/SKILL.md +77 -0
  103. package/skills/native-data-fetching/SKILL.md +50 -0
  104. package/skills/navigation-architect/SKILL.md +65 -0
  105. package/skills/performance-engineer/SKILL.md +250 -0
  106. package/skills/platform-specialist/SKILL.md +95 -0
  107. package/skills/pre-release-gate/SKILL.md +75 -0
  108. package/skills/screen-designer/SKILL.md +117 -0
  109. package/skills/security-engineer/SKILL.md +375 -0
  110. package/skills/skills.json +134 -0
  111. package/skills/testing-auditor/SKILL.md +62 -0
  112. package/skills/ui-architect/SKILL.md +86 -0
  113. package/skills/ui-implementer/SKILL.md +188 -0
  114. package/skills/ux-architect/SKILL.md +49 -0
  115. package/skills/ux-auditor/SKILL.md +52 -0
  116. package/skills/visual-auditor/SKILL.md +71 -0
  117. package/templates/audit-report.md +29 -0
  118. package/templates/design-tokens.ts +33 -0
  119. package/templates/screen-spec.md +61 -0
  120. package/workflows/new-screen.md +17 -0
  121. package/workflows/pre-release.md +21 -0
  122. package/workflows/redesign.md +14 -0
  123. package/workflows/ui-audit.md +22 -0
@@ -0,0 +1,1535 @@
1
+ # Motion Design, Animation Systems & Spatial Continuity
2
+
3
+ > Advanced agent module for designing motion systems, transitions, animation
4
+ > choreography, physics, spatial continuity, feedback animation, and
5
+ > performance-conscious motion across iOS, iPadOS, React Native, and Expo.
6
+
7
+ Version: 1.0
8
+ Platform: iOS / iPadOS / React Native / Expo
9
+ Layer: Advanced motion intelligence
10
+
11
+ ---
12
+
13
+ # 1. PURPOSE
14
+
15
+ Motion should not exist merely because an interface can animate.
16
+
17
+ A strong motion system communicates:
18
+
19
+ ```text
20
+ Cause
21
+ Change
22
+ Direction
23
+ Relationship
24
+ Hierarchy
25
+ Feedback
26
+ Progress
27
+ Completion
28
+ ```
29
+
30
+ Motion should make the interface easier to understand.
31
+
32
+ ---
33
+
34
+ # 2. CORE PRINCIPLE
35
+
36
+ Every meaningful animation should answer at least one question:
37
+
38
+ ```text
39
+ What changed?
40
+
41
+ Where did it come from?
42
+
43
+ Where did it go?
44
+
45
+ What caused the change?
46
+
47
+ What should I pay attention to?
48
+
49
+ What can I do next?
50
+ ```
51
+
52
+ If an animation answers none of these questions, question whether it is
53
+ necessary.
54
+
55
+ ---
56
+
57
+ # 3. MOTION LANGUAGE
58
+
59
+ An application should have a consistent motion language.
60
+
61
+ Define:
62
+
63
+ ```text
64
+ Duration
65
+ Easing
66
+ Spring behavior
67
+ Scale behavior
68
+ Opacity behavior
69
+ Translation
70
+ Blur
71
+ Depth
72
+ Gesture response
73
+ ```
74
+
75
+ Avoid designing each animation independently.
76
+
77
+ ---
78
+
79
+ # 4. MOTION HIERARCHY
80
+
81
+ Motion should have levels.
82
+
83
+ ```text
84
+ Level 1
85
+ Micro feedback
86
+
87
+ Level 2
88
+ Component transition
89
+
90
+ Level 3
91
+ Screen transition
92
+
93
+ Level 4
94
+ Major state transformation
95
+ ```
96
+
97
+ The larger the conceptual change, the more noticeable the motion may be.
98
+
99
+ ---
100
+
101
+ # 5. MICRO MOTION
102
+
103
+ Examples:
104
+
105
+ ```text
106
+ Toggle
107
+ Button press
108
+ Favorite
109
+ Checkbox
110
+ Selection
111
+ Progress
112
+ ```
113
+
114
+ These should generally be subtle and fast.
115
+
116
+ ---
117
+
118
+ # 6. COMPONENT MOTION
119
+
120
+ Examples:
121
+
122
+ ```text
123
+ Card expansion
124
+ Panel opening
125
+ Dropdown
126
+ Sheet
127
+ Context menu
128
+ ```
129
+
130
+ These need enough motion to communicate spatial relationships.
131
+
132
+ ---
133
+
134
+ # 7. SCREEN MOTION
135
+
136
+ Examples:
137
+
138
+ ```text
139
+ Push navigation
140
+ Modal presentation
141
+ Detail expansion
142
+ Page transition
143
+ ```
144
+
145
+ These should establish spatial continuity.
146
+
147
+ ---
148
+
149
+ # 8. MAJOR TRANSFORMATIONS
150
+
151
+ Examples:
152
+
153
+ ```text
154
+ Collapsed player
155
+ → Full player
156
+
157
+ Thumbnail
158
+ → Full-screen artwork
159
+
160
+ Compact toolbar
161
+ → Expanded editor
162
+
163
+ List
164
+ → Selection mode
165
+ ```
166
+
167
+ These may use coordinated animations involving multiple elements.
168
+
169
+ ---
170
+
171
+ # 9. MOTION TOKENS
172
+
173
+ Create centralized motion tokens.
174
+
175
+ Example:
176
+
177
+ ```text
178
+ motion.instant
179
+ motion.fast
180
+ motion.normal
181
+ motion.slow
182
+ ```
183
+
184
+ and:
185
+
186
+ ```text
187
+ ease.standard
188
+ ease.enter
189
+ ease.exit
190
+ ease.emphasized
191
+ spring.soft
192
+ spring.medium
193
+ spring.strong
194
+ ```
195
+
196
+ The exact values should be tuned to the application.
197
+
198
+ ---
199
+
200
+ # 10. DURATION
201
+
202
+ Duration should depend on the conceptual distance of the transition.
203
+
204
+ General principle:
205
+
206
+ ```text
207
+ Small change
208
+ → Shorter
209
+
210
+ Large spatial change
211
+ → Longer
212
+ ```
213
+
214
+ Avoid unnecessarily slow interfaces.
215
+
216
+ ---
217
+
218
+ # 11. DISTANCE
219
+
220
+ Movement distance should influence perceived duration.
221
+
222
+ Large movement generally needs more time than tiny feedback.
223
+
224
+ ---
225
+
226
+ # 12. EASING
227
+
228
+ Avoid using linear movement for most UI transitions.
229
+
230
+ Linear motion often feels mechanical.
231
+
232
+ Use appropriate easing or spring behavior.
233
+
234
+ ---
235
+
236
+ # 13. ENTER MOTION
237
+
238
+ Elements entering the interface should communicate:
239
+
240
+ > This is becoming available.
241
+
242
+ Possible properties:
243
+
244
+ ```text
245
+ Opacity
246
+ Translation
247
+ Scale
248
+ Clip
249
+ Blur
250
+ ```
251
+
252
+ Use restraint.
253
+
254
+ ---
255
+
256
+ # 14. EXIT MOTION
257
+
258
+ Elements leaving should communicate:
259
+
260
+ > This is no longer present.
261
+
262
+ Exit animation is often faster than entrance animation.
263
+
264
+ ---
265
+
266
+ # 15. ENTER + EXIT RELATIONSHIP
267
+
268
+ Entrance and exit should feel like members of the same motion system.
269
+
270
+ Do not make entering objects feel soft while exiting objects feel abrupt unless
271
+ there is a deliberate reason.
272
+
273
+ ---
274
+
275
+ # 16. SPATIAL CONTINUITY
276
+
277
+ When an object appears in another location, preserve its identity through
278
+ motion where useful.
279
+
280
+ Example:
281
+
282
+ ```text
283
+ Small artwork
284
+ ↓
285
+ Expanded artwork
286
+ ```
287
+
288
+ The user should perceive:
289
+
290
+ > The same object became larger.
291
+
292
+ Not:
293
+
294
+ > One image disappeared and another appeared.
295
+
296
+ ---
297
+
298
+ # 17. SHARED ELEMENTS
299
+
300
+ Shared-element transitions can connect related surfaces.
301
+
302
+ Potential candidates:
303
+
304
+ ```text
305
+ Artwork
306
+ Avatar
307
+ Thumbnail
308
+ Document
309
+ Product image
310
+ Profile image
311
+ ```
312
+
313
+ ---
314
+
315
+ # 18. SHARED-ELEMENT RULE
316
+
317
+ Only animate elements that actually have a meaningful relationship.
318
+
319
+ Do not animate unrelated objects merely to create spectacle.
320
+
321
+ ---
322
+
323
+ # 19. CONTAINER TRANSFORMATIONS
324
+
325
+ A container can transform between states.
326
+
327
+ Example:
328
+
329
+ ```text
330
+ Card
331
+ ↓
332
+ Expanded surface
333
+ ```
334
+
335
+ The outer structure can visually evolve rather than being replaced abruptly.
336
+
337
+ ---
338
+
339
+ # 20. MORPHING
340
+
341
+ Morphing can communicate:
342
+
343
+ ```text
344
+ Button
345
+ → Loading state
346
+
347
+ Button
348
+ → Success state
349
+
350
+ Mini player
351
+ → Full player
352
+ ```
353
+
354
+ Use it when the relationship between states is strong.
355
+
356
+ ---
357
+
358
+ # 21. OPACITY
359
+
360
+ Opacity is useful for:
361
+
362
+ ```text
363
+ Appear
364
+ Disappear
365
+ De-emphasis
366
+ Overlay
367
+ Hierarchy
368
+ ```
369
+
370
+ Do not use opacity as the only signal for important state changes.
371
+
372
+ ---
373
+
374
+ # 22. SCALE
375
+
376
+ Small scale changes can communicate:
377
+
378
+ ```text
379
+ Press
380
+ Selection
381
+ Expansion
382
+ Collapse
383
+ ```
384
+
385
+ Avoid excessive scaling that makes controls feel unstable.
386
+
387
+ ---
388
+
389
+ # 23. PRESS SCALE
390
+
391
+ A button may subtly compress during touch.
392
+
393
+ Conceptually:
394
+
395
+ ```text
396
+ Idle
397
+ ↓
398
+ Press
399
+ ↓
400
+ Release
401
+ ↓
402
+ Return
403
+ ```
404
+
405
+ The change should remain subtle.
406
+
407
+ ---
408
+
409
+ # 24. ICON TRANSITIONS
410
+
411
+ Icons can animate when their meaning changes.
412
+
413
+ Examples:
414
+
415
+ ```text
416
+ Play
417
+ ↔
418
+ Pause
419
+
420
+ Heart
421
+ ↔
422
+ Favorite
423
+
424
+ Menu
425
+ ↔
426
+ Close
427
+ ```
428
+
429
+ ---
430
+
431
+ # 25. ICON MORPHING
432
+
433
+ When two icons represent related states, morphing can reinforce continuity.
434
+
435
+ ---
436
+
437
+ # 26. ICON ROTATION
438
+
439
+ Rotation can communicate state when the semantic relationship is clear.
440
+
441
+ Examples:
442
+
443
+ ```text
444
+ Chevron
445
+ ↓
446
+ Expanded
447
+
448
+ Refresh
449
+ ↓
450
+ Refreshing
451
+ ```
452
+
453
+ Avoid decorative spinning.
454
+
455
+ ---
456
+
457
+ # 27. LOADING MOTION
458
+
459
+ Loading animation should communicate activity without creating anxiety.
460
+
461
+ ---
462
+
463
+ # 28. PROGRESS MOTION
464
+
465
+ Progress should feel continuous when the underlying process is continuous.
466
+
467
+ Avoid visually jumping between arbitrary percentages.
468
+
469
+ ---
470
+
471
+ # 29. SUCCESS MOTION
472
+
473
+ Success can use subtle:
474
+
475
+ ```text
476
+ Checkmark
477
+ Scale
478
+ Opacity
479
+ Color/state transition
480
+ ```
481
+
482
+ rather than a large celebratory animation for every operation.
483
+
484
+ ---
485
+
486
+ # 30. ERROR MOTION
487
+
488
+ Error feedback should attract attention without feeling aggressive.
489
+
490
+ Possible behavior:
491
+
492
+ ```text
493
+ Subtle shake
494
+ Highlight
495
+ Inline transition
496
+ ```
497
+
498
+ Only use shaking when it clearly communicates invalid input or failure.
499
+
500
+ ---
501
+
502
+ # 31. SHAKE
503
+
504
+ Shake is appropriate for:
505
+
506
+ ```text
507
+ Invalid input
508
+ Incorrect authentication
509
+ Boundary feedback
510
+ ```
511
+
512
+ Use sparingly.
513
+
514
+ ---
515
+
516
+ # 32. BOUNCE
517
+
518
+ Bounce can communicate physical boundaries.
519
+
520
+ Examples:
521
+
522
+ ```text
523
+ Overscroll
524
+ Drag limit
525
+ Spring release
526
+ ```
527
+
528
+ Avoid excessive bouncing.
529
+
530
+ ---
531
+
532
+ # 33. SPRING SYSTEM
533
+
534
+ Spring motion can make interactions feel physical.
535
+
536
+ Parameters conceptually include:
537
+
538
+ ```text
539
+ Mass
540
+ Stiffness
541
+ Damping
542
+ Velocity
543
+ ```
544
+
545
+ The implementation should use platform-appropriate spring behavior.
546
+
547
+ ---
548
+
549
+ # 34. SPRING RESPONSE
550
+
551
+ Interactive elements should respond naturally to gesture velocity.
552
+
553
+ For example:
554
+
555
+ ```text
556
+ Slow drag
557
+ → Controlled movement
558
+
559
+ Fast swipe
560
+ → Faster dismissal
561
+ ```
562
+
563
+ ---
564
+
565
+ # 35. GESTURE-DRIVEN MOTION
566
+
567
+ When the user drags an object, the interface should track the gesture directly
568
+ where practical.
569
+
570
+ Avoid animations that fight the user's finger.
571
+
572
+ ---
573
+
574
+ # 36. INTERRUPTIBLE ANIMATION
575
+
576
+ Interactive animations should ideally be interruptible.
577
+
578
+ Example:
579
+
580
+ ```text
581
+ Opening
582
+ ↓
583
+ User reverses gesture
584
+ ↓
585
+ Animation reverses naturally
586
+ ```
587
+
588
+ This is often more natural than forcing the original animation to complete.
589
+
590
+ ---
591
+
592
+ # 37. REVERSIBILITY
593
+
594
+ Where possible:
595
+
596
+ ```text
597
+ Open
598
+ ↔
599
+ Close
600
+ ```
601
+
602
+ should feel like reversible physical movement.
603
+
604
+ ---
605
+
606
+ # 38. VELOCITY CONTINUITY
607
+
608
+ When a gesture transitions into an animation, preserve relevant velocity.
609
+
610
+ This can make the interaction feel significantly more physical.
611
+
612
+ ---
613
+
614
+ # 39. SHEET MOTION
615
+
616
+ Sheets should communicate:
617
+
618
+ ```text
619
+ Origin
620
+ Purpose
621
+ Dismissibility
622
+ Relationship to underlying content
623
+ ```
624
+
625
+ ---
626
+
627
+ # 40. SHEET PRESENTATION
628
+
629
+ The underlying screen should remain recognizable when the sheet is contextual.
630
+
631
+ ---
632
+
633
+ # 41. SHEET DISMISSAL
634
+
635
+ Dismissal should feel connected to presentation.
636
+
637
+ Potential mechanisms:
638
+
639
+ ```text
640
+ Swipe
641
+ Close
642
+ Back
643
+ Action completion
644
+ ```
645
+
646
+ ---
647
+
648
+ # 42. BACKDROP MOTION
649
+
650
+ A backdrop can gradually appear as a modal surface opens.
651
+
652
+ It communicates:
653
+
654
+ > The underlying content is temporarily inactive.
655
+
656
+ ---
657
+
658
+ # 43. BACKDROP OPACITY
659
+
660
+ Do not make overlays unnecessarily dark or visually heavy.
661
+
662
+ The underlying context should remain understandable where appropriate.
663
+
664
+ ---
665
+
666
+ # 44. BLUR
667
+
668
+ Blur can create hierarchy between foreground and background.
669
+
670
+ Potential uses:
671
+
672
+ ```text
673
+ Navigation surfaces
674
+ Media players
675
+ Sheets
676
+ Overlays
677
+ Floating controls
678
+ ```
679
+
680
+ Use carefully because blur has performance and readability implications.
681
+
682
+ ---
683
+
684
+ # 45. BLUR + MOTION
685
+
686
+ When a foreground surface appears, coordinated blur and movement can establish
687
+ depth.
688
+
689
+ Avoid stacking excessive effects.
690
+
691
+ ---
692
+
693
+ # 46. DEPTH
694
+
695
+ Motion can communicate spatial layering.
696
+
697
+ Conceptually:
698
+
699
+ ```text
700
+ Background
701
+ ↓
702
+ Content
703
+ ↓
704
+ Floating surface
705
+ ↓
706
+ Modal
707
+ ```
708
+
709
+ Each layer should have a distinct relationship.
710
+
711
+ ---
712
+
713
+ # 47. Z-ORDER COMMUNICATION
714
+
715
+ When one object moves above another, the animation should communicate the new
716
+ hierarchy.
717
+
718
+ ---
719
+
720
+ # 48. PARALLAX
721
+
722
+ Parallax can communicate depth but should be subtle.
723
+
724
+ Do not use it merely because it looks impressive.
725
+
726
+ ---
727
+
728
+ # 49. SCROLL MOTION
729
+
730
+ Scrolling can drive:
731
+
732
+ ```text
733
+ Header collapse
734
+ Toolbar transformation
735
+ Image scaling
736
+ Opacity
737
+ Navigation appearance
738
+ ```
739
+
740
+ These transformations should remain coherent with scroll position.
741
+
742
+ ---
743
+
744
+ # 50. COLLAPSING HEADERS
745
+
746
+ A large title may transform into a compact navigation title.
747
+
748
+ Conceptually:
749
+
750
+ ```text
751
+ Large title
752
+ ↓
753
+ Scroll
754
+ ↓
755
+ Compact title
756
+ ```
757
+
758
+ This preserves context while reclaiming space.
759
+
760
+ ---
761
+
762
+ # 51. SCROLL-LINKED ANIMATION
763
+
764
+ Animation should respond predictably to scroll position.
765
+
766
+ Avoid animations that continue independently after the user stops scrolling
767
+ unless intentionally designed.
768
+
769
+ ---
770
+
771
+ # 52. SCROLL PERFORMANCE
772
+
773
+ Scroll-linked animations must be optimized carefully.
774
+
775
+ Dropped frames are particularly noticeable during scrolling.
776
+
777
+ ---
778
+
779
+ # 53. NAVIGATION TRANSITIONS
780
+
781
+ Navigation motion should communicate hierarchy.
782
+
783
+ Typical conceptual mapping:
784
+
785
+ ```text
786
+ Push
787
+ → Deeper
788
+
789
+ Pop
790
+ → Return
791
+
792
+ Modal
793
+ → Temporary task
794
+
795
+ Sheet
796
+ → Contextual operation
797
+ ```
798
+
799
+ ---
800
+
801
+ # 54. DIRECTION
802
+
803
+ Movement direction can communicate navigation direction.
804
+
805
+ Do not introduce arbitrary directions between screens.
806
+
807
+ ---
808
+
809
+ # 55. TAB TRANSITIONS
810
+
811
+ Switching top-level destinations should not feel like repeatedly pushing deeper
812
+ into a navigation stack.
813
+
814
+ ---
815
+
816
+ # 56. TAB STATE
817
+
818
+ When returning to a tab, preserve useful context rather than replaying a
819
+ dramatic entrance animation every time.
820
+
821
+ ---
822
+
823
+ # 57. MODAL TRANSITIONS
824
+
825
+ Modal presentation should feel distinct from ordinary navigation.
826
+
827
+ This helps users understand:
828
+
829
+ > I am temporarily doing something over the current context.
830
+
831
+ ---
832
+
833
+ # 58. FULL-SCREEN TRANSITIONS
834
+
835
+ Full-screen transitions can be more expressive when entering a focused task.
836
+
837
+ Examples:
838
+
839
+ ```text
840
+ Camera
841
+ Editor
842
+ Player
843
+ Immersive reader
844
+ ```
845
+
846
+ ---
847
+
848
+ # 59. LIST INSERTION
849
+
850
+ When an item is added to a list, communicate its new location.
851
+
852
+ Avoid making the entire list jump unexpectedly.
853
+
854
+ ---
855
+
856
+ # 60. LIST REMOVAL
857
+
858
+ When an item disappears:
859
+
860
+ ```text
861
+ Item removed
862
+ ↓
863
+ Remaining items reposition
864
+ ```
865
+
866
+ The movement should explain what changed.
867
+
868
+ ---
869
+
870
+ # 61. LIST REORDERING
871
+
872
+ During reorder:
873
+
874
+ ```text
875
+ Grab
876
+ ↓
877
+ Item lifts
878
+ ↓
879
+ Neighbors move
880
+ ↓
881
+ Release
882
+ ↓
883
+ Item settles
884
+ ```
885
+
886
+ This creates a clear spatial model.
887
+
888
+ ---
889
+
890
+ # 62. GRID ANIMATION
891
+
892
+ When grid content changes, avoid unnecessary movement of unrelated items.
893
+
894
+ ---
895
+
896
+ # 63. FILTER TRANSITIONS
897
+
898
+ When filtering a collection:
899
+
900
+ ```text
901
+ All
902
+ ↓
903
+ Filtered
904
+ ```
905
+
906
+ the interface should communicate that the same collection has changed rather
907
+ than appearing to navigate to a completely unrelated screen.
908
+
909
+ ---
910
+
911
+ # 64. SORT TRANSITIONS
912
+
913
+ Sorting may animate item movement when doing so helps users understand the
914
+ change.
915
+
916
+ Avoid excessive movement for very large datasets.
917
+
918
+ ---
919
+
920
+ # 65. SEARCH RESULTS
921
+
922
+ Search results can transition from:
923
+
924
+ ```text
925
+ Query
926
+ ↓
927
+ Results
928
+ ```
929
+
930
+ without excessive animation that delays the user's next action.
931
+
932
+ ---
933
+
934
+ # 66. EMPTY STATE TRANSITION
935
+
936
+ When the final item is removed, transition gracefully to the empty state.
937
+
938
+ ---
939
+
940
+ # 67. EMPTY → CONTENT
941
+
942
+ When content is created, the transition should communicate that the empty
943
+ state has been replaced by real content.
944
+
945
+ ---
946
+
947
+ # 68. STATE TRANSITIONS
948
+
949
+ Common state transitions include:
950
+
951
+ ```text
952
+ Idle
953
+ Loading
954
+ Success
955
+ Error
956
+ Empty
957
+ Disabled
958
+ Selected
959
+ Editing
960
+ ```
961
+
962
+ Each should have a defined visual behavior.
963
+
964
+ ---
965
+
966
+ # 69. STATE MACHINE
967
+
968
+ For complex components, model states explicitly.
969
+
970
+ Example:
971
+
972
+ ```text
973
+ Idle
974
+ ↓
975
+ Loading
976
+ ↓
977
+ Success
978
+ ```
979
+
980
+ or:
981
+
982
+ ```text
983
+ Idle
984
+ ↓
985
+ Editing
986
+ ↓
987
+ Saving
988
+ ↓
989
+ Saved
990
+ ```
991
+
992
+ ---
993
+
994
+ # 70. STATE ANIMATION RULE
995
+
996
+ Animations should correspond to state transitions rather than arbitrary timers.
997
+
998
+ ---
999
+
1000
+ # 71. TIMING INDEPENDENCE
1001
+
1002
+ Do not use animation duration as a substitute for actual process timing.
1003
+
1004
+ Bad:
1005
+
1006
+ ```text
1007
+ Loading animation
1008
+ → Always runs for 2 seconds
1009
+ → Pretends operation is complete
1010
+ ```
1011
+
1012
+ Good:
1013
+
1014
+ ```text
1015
+ Actual operation
1016
+ → Actual state
1017
+ → Animation reflects state
1018
+ ```
1019
+
1020
+ ---
1021
+
1022
+ # 72. ASYNC COMPLETION
1023
+
1024
+ When an async operation finishes, transition the UI into the resulting state
1025
+ immediately.
1026
+
1027
+ ---
1028
+
1029
+ # 73. OPTIMISTIC MOTION
1030
+
1031
+ For safe optimistic interactions:
1032
+
1033
+ ```text
1034
+ Tap
1035
+ ↓
1036
+ Animate toward expected state
1037
+ ↓
1038
+ Operation completes
1039
+ ```
1040
+
1041
+ If it fails:
1042
+
1043
+ ```text
1044
+ Restore
1045
+ +
1046
+ Explain
1047
+ ```
1048
+
1049
+ ---
1050
+
1051
+ # 74. ERROR RECOVERY MOTION
1052
+
1053
+ Recovery should visually return the interface to a valid state.
1054
+
1055
+ ---
1056
+
1057
+ # 75. REDUCED MOTION
1058
+
1059
+ The system accessibility preference for reduced motion must be respected.
1060
+
1061
+ When enabled:
1062
+
1063
+ ```text
1064
+ Complex transition
1065
+ ↓
1066
+ Simplified transition
1067
+ ```
1068
+
1069
+ The user should still understand the change.
1070
+
1071
+ ---
1072
+
1073
+ # 76. MOTION WITHOUT MOTION
1074
+
1075
+ Important state changes must remain understandable without animation.
1076
+
1077
+ Use:
1078
+
1079
+ ```text
1080
+ State
1081
+ Position
1082
+ Opacity
1083
+ Labels
1084
+ Icons
1085
+ ```
1086
+
1087
+ as alternative signals.
1088
+
1089
+ ---
1090
+
1091
+ # 77. ACCESSIBILITY
1092
+
1093
+ Motion must never be required to understand:
1094
+
1095
+ ```text
1096
+ Navigation
1097
+ State
1098
+ Error
1099
+ Success
1100
+ Action availability
1101
+ ```
1102
+
1103
+ ---
1104
+
1105
+ # 78. PERFORMANCE
1106
+
1107
+ Animation quality is inseparable from performance.
1108
+
1109
+ A beautiful animation that drops frames is not a premium experience.
1110
+
1111
+ ---
1112
+
1113
+ # 79. FRAME CONSISTENCY
1114
+
1115
+ The agent should prioritize:
1116
+
1117
+ ```text
1118
+ Stable frame delivery
1119
+ Low input latency
1120
+ Minimal dropped frames
1121
+ ```
1122
+
1123
+ over unnecessary visual complexity.
1124
+
1125
+ ---
1126
+
1127
+ # 80. MAIN THREAD
1128
+
1129
+ Avoid expensive work during critical animation paths.
1130
+
1131
+ Examples:
1132
+
1133
+ ```text
1134
+ Heavy computation
1135
+ Large synchronous data processing
1136
+ Expensive image operations
1137
+ Unnecessary layout recalculation
1138
+ ```
1139
+
1140
+ should not block interactive motion.
1141
+
1142
+ ---
1143
+
1144
+ # 81. NATIVE-DRIVEN MOTION
1145
+
1146
+ Where appropriate, use platform-native or optimized animation systems.
1147
+
1148
+ For React Native applications, avoid unnecessarily routing every frame of a
1149
+ gesture through slow JavaScript execution.
1150
+
1151
+ ---
1152
+
1153
+ # 82. LAYOUT ANIMATION
1154
+
1155
+ Animating layout can be expensive.
1156
+
1157
+ Use layout animation deliberately.
1158
+
1159
+ ---
1160
+
1161
+ # 83. TRANSFORM VS LAYOUT
1162
+
1163
+ When appropriate, transforms can provide smoother visual movement than
1164
+ continuously changing layout dimensions.
1165
+
1166
+ ---
1167
+
1168
+ # 84. OPACITY PERFORMANCE
1169
+
1170
+ Opacity and transforms are often useful for performant animation, but the
1171
+ implementation should still be profiled rather than assumed to be free.
1172
+
1173
+ ---
1174
+
1175
+ # 85. IMAGE ANIMATION
1176
+
1177
+ Large images can make transitions expensive.
1178
+
1179
+ Consider:
1180
+
1181
+ ```text
1182
+ Resolution
1183
+ Caching
1184
+ Decode cost
1185
+ Memory
1186
+ ```
1187
+
1188
+ when designing image-heavy motion.
1189
+
1190
+ ---
1191
+
1192
+ # 86. BLUR PERFORMANCE
1193
+
1194
+ Blur can be expensive.
1195
+
1196
+ Use it selectively, especially over large dynamic regions.
1197
+
1198
+ ---
1199
+
1200
+ # 87. SHADOWS
1201
+
1202
+ Animated shadows may be expensive depending on implementation.
1203
+
1204
+ Do not animate complex shadows unnecessarily.
1205
+
1206
+ ---
1207
+
1208
+ # 88. PERFORMANCE FALLBACK
1209
+
1210
+ When a device cannot comfortably render a complex effect, preserve the
1211
+ interaction meaning with simpler motion.
1212
+
1213
+ ---
1214
+
1215
+ # 89. MOTION BUDGET
1216
+
1217
+ Every screen should have a limited motion budget.
1218
+
1219
+ Do not animate:
1220
+
1221
+ ```text
1222
+ Header
1223
+ Cards
1224
+ Background
1225
+ Icons
1226
+ Buttons
1227
+ Navigation
1228
+ ```
1229
+
1230
+ simultaneously without a clear hierarchy.
1231
+
1232
+ ---
1233
+
1234
+ # 90. MOTION FOCUS
1235
+
1236
+ At any moment, identify the most important moving object.
1237
+
1238
+ That object should receive the strongest motion emphasis.
1239
+
1240
+ ---
1241
+
1242
+ # 91. STAGGERING
1243
+
1244
+ Staggered animation can establish hierarchy.
1245
+
1246
+ Example:
1247
+
1248
+ ```text
1249
+ Title
1250
+ ↓
1251
+ Primary content
1252
+ ↓
1253
+ Secondary content
1254
+ ```
1255
+
1256
+ Use short intervals.
1257
+
1258
+ ---
1259
+
1260
+ # 92. STAGGER RESTRAINT
1261
+
1262
+ Do not make users wait for every element to animate in sequentially.
1263
+
1264
+ The application should become usable quickly.
1265
+
1266
+ ---
1267
+
1268
+ # 93. ENTERING LISTS
1269
+
1270
+ Large lists should generally prioritize immediate usability over elaborate
1271
+ entrance animations.
1272
+
1273
+ ---
1274
+
1275
+ # 94. MOTION + BRAND
1276
+
1277
+ A product can develop a recognizable motion personality.
1278
+
1279
+ For example:
1280
+
1281
+ ```text
1282
+ Calm
1283
+ Precise
1284
+ Physical
1285
+ Energetic
1286
+ Minimal
1287
+ Technical
1288
+ ```
1289
+
1290
+ But personality should not override usability.
1291
+
1292
+ ---
1293
+
1294
+ # 95. PREMIUM MOTION
1295
+
1296
+ Premium motion generally feels:
1297
+
1298
+ ```text
1299
+ Controlled
1300
+ Subtle
1301
+ Responsive
1302
+ Physically coherent
1303
+ Fast
1304
+ Intentional
1305
+ ```
1306
+
1307
+ Not:
1308
+
1309
+ ```text
1310
+ Slow
1311
+ Bouncy everywhere
1312
+ Overdecorated
1313
+ Constantly animated
1314
+ ```
1315
+
1316
+ ---
1317
+
1318
+ # 96. MOTION CONSISTENCY
1319
+
1320
+ Similar transitions should behave similarly throughout the product.
1321
+
1322
+ ---
1323
+
1324
+ # 97. MOTION DOCUMENTATION
1325
+
1326
+ The agent should maintain a motion specification containing:
1327
+
1328
+ ```text
1329
+ Transition
1330
+ Trigger
1331
+ Duration
1332
+ Easing
1333
+ Direction
1334
+ Properties
1335
+ Interruptibility
1336
+ Accessibility behavior
1337
+ Performance requirements
1338
+ ```
1339
+
1340
+ ---
1341
+
1342
+ # 98. MOTION TESTING
1343
+
1344
+ Test:
1345
+
1346
+ ```text
1347
+ Normal interaction
1348
+ Rapid interaction
1349
+ Interrupted interaction
1350
+ Slow interaction
1351
+ Reduced motion
1352
+ Large text
1353
+ Low-end hardware
1354
+ Heavy content
1355
+ Network delay
1356
+ ```
1357
+
1358
+ ---
1359
+
1360
+ # 99. MOTION QA
1361
+
1362
+ Ask:
1363
+
1364
+ ```text
1365
+ Does motion explain the change?
1366
+
1367
+ Does it respond immediately?
1368
+
1369
+ Can it be interrupted?
1370
+
1371
+ Does it preserve spatial relationships?
1372
+
1373
+ Does it respect reduced motion?
1374
+
1375
+ Does it remain smooth?
1376
+
1377
+ Does it delay the user's task?
1378
+
1379
+ Does it draw attention to the correct object?
1380
+ ```
1381
+
1382
+ ---
1383
+
1384
+ # 100. MOTION ANTI-PATTERNS
1385
+
1386
+ Avoid:
1387
+
1388
+ ```text
1389
+ Animation for decoration only
1390
+ Long blocking transitions
1391
+ Unnecessary bouncing
1392
+ Excessive parallax
1393
+ Constant shimmer
1394
+ Infinite decorative motion
1395
+ Uninterruptible gestures
1396
+ Motion that ignores reduced-motion settings
1397
+ Animation that hides state changes
1398
+ Different motion rules for similar components
1399
+ Heavy effects on large surfaces
1400
+ Animation that blocks interaction
1401
+ ```
1402
+
1403
+ ---
1404
+
1405
+ # 101. MOTION WORKFLOW
1406
+
1407
+ The agent should follow:
1408
+
1409
+ ```text
1410
+ 1. Identify state changes
1411
+ ↓
1412
+ 2. Identify spatial relationships
1413
+ ↓
1414
+ 3. Identify user-triggered interactions
1415
+ ↓
1416
+ 4. Define motion hierarchy
1417
+ ↓
1418
+ 5. Define motion tokens
1419
+ ↓
1420
+ 6. Define enter/exit behavior
1421
+ ↓
1422
+ 7. Define navigation transitions
1423
+ ↓
1424
+ 8. Define gesture-driven motion
1425
+ ↓
1426
+ 9. Define shared-element opportunities
1427
+ ↓
1428
+ 10. Define component transitions
1429
+ ↓
1430
+ 11. Define loading/success/error motion
1431
+ ↓
1432
+ 12. Define reduced-motion behavior
1433
+ ↓
1434
+ 13. Define performance constraints
1435
+ ↓
1436
+ 14. Test interruption
1437
+ ↓
1438
+ 15. Test rapid interaction
1439
+ ↓
1440
+ 16. Test accessibility
1441
+ ↓
1442
+ 17. Profile performance
1443
+ ↓
1444
+ 18. Remove unnecessary motion
1445
+ ```
1446
+
1447
+ ---
1448
+
1449
+ # 102. MOTION QUALITY GATE
1450
+
1451
+ ```text
1452
+ [ ] Motion has a semantic purpose
1453
+ [ ] Motion language is consistent
1454
+ [ ] Motion hierarchy exists
1455
+ [ ] Durations are appropriate
1456
+ [ ] Easing is intentional
1457
+ [ ] Springs are used selectively
1458
+ [ ] Navigation direction is understandable
1459
+ [ ] Shared elements are meaningful
1460
+ [ ] Gestures can drive motion naturally
1461
+ [ ] Important animations can be interrupted
1462
+ [ ] Loading reflects actual state
1463
+ [ ] Success is communicated
1464
+ [ ] Errors are communicated
1465
+ [ ] Reduced motion is supported
1466
+ [ ] Motion does not block tasks
1467
+ [ ] Large lists avoid excessive animation
1468
+ [ ] Blur is used carefully
1469
+ [ ] Heavy effects are profiled
1470
+ [ ] Frame performance is acceptable
1471
+ [ ] Motion has a defined budget
1472
+ [ ] Similar interactions behave consistently
1473
+ [ ] Motion enhances rather than replaces information
1474
+ ```
1475
+
1476
+ ---
1477
+
1478
+ # 103. AGENT DECISION RULE
1479
+
1480
+ Before adding an animation, ask:
1481
+
1482
+ ```text
1483
+ What does this animation communicate?
1484
+
1485
+ What object is changing?
1486
+
1487
+ What is the relationship between the old and new state?
1488
+
1489
+ Can the animation be interrupted?
1490
+
1491
+ What happens with reduced motion?
1492
+
1493
+ Will this remain smooth on real hardware?
1494
+
1495
+ Does this animation improve comprehension?
1496
+ ```
1497
+
1498
+ If the answer is simply:
1499
+
1500
+ > "It looks cool."
1501
+
1502
+ remove it or reconsider it.
1503
+
1504
+ ---
1505
+
1506
+ # 104. FINAL PRINCIPLE
1507
+
1508
+ Motion should make the interface feel alive without making it feel animated.
1509
+
1510
+ The ideal experience is:
1511
+
1512
+ ```text
1513
+ User acts
1514
+ ↓
1515
+ Interface responds immediately
1516
+ ↓
1517
+ Motion explains the change
1518
+ ↓
1519
+ The new state becomes obvious
1520
+ ↓
1521
+ User continues without interruption
1522
+ ```
1523
+
1524
+ The highest-quality motion is often the motion users **feel but don't notice**.
1525
+
1526
+ The objective is not:
1527
+
1528
+ > "Look how much the UI moves."
1529
+
1530
+ It is:
1531
+
1532
+ > **"The interface naturally explains itself through movement."**
1533
+
1534
+ A premium application should therefore treat motion as part of its interaction
1535
+ language—not as decoration added after the interface has already been designed.