@istmx/skills 1.1.0 → 2.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 (153) hide show
  1. package/CODE_OF_CONDUCT.md +47 -0
  2. package/LICENSE +30 -0
  3. package/README.md +48 -22
  4. package/bin/cli.js +130 -119
  5. package/istm-animate/SKILL.md +28 -58
  6. package/istm-animate/core/motion-principles/SKILL.md +284 -0
  7. package/istm-animate/core/motion-principles/references/designers.md +127 -0
  8. package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
  9. package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
  10. package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
  11. package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
  12. package/istm-animate/frameworks/css-native/SKILL.md +319 -0
  13. package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
  14. package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
  15. package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
  16. package/istm-animate/frameworks/gsap/SKILL.md +188 -0
  17. package/istm-animate/frameworks/gsap/references/core.md +218 -0
  18. package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
  19. package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
  20. package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
  21. package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
  22. package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
  23. package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
  24. package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
  25. package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
  26. package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
  27. package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
  28. package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
  29. package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
  30. package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
  31. package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
  32. package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
  33. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
  34. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
  35. package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
  36. package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
  37. package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
  38. package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
  39. package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
  40. package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
  41. package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
  42. package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
  43. package/istm-animate/references/animate.md +199 -0
  44. package/istm-animate/references/audit.md +115 -0
  45. package/istm-animate/references/design-engineering.md +674 -0
  46. package/istm-animate/references/improve.md +101 -0
  47. package/istm-animate/references/opportunities.md +132 -0
  48. package/istm-animate/references/plan-template.md +73 -0
  49. package/istm-animate/references/recipes.md +324 -0
  50. package/istm-animate/references/review.md +112 -0
  51. package/istm-animate/references/standards.md +187 -0
  52. package/istm-animate/references/vocabulary.md +173 -0
  53. package/istm-architecture/SKILL.md +10 -1
  54. package/istm-awwward-designer/SKILL.md +28 -20
  55. package/istm-design/SKILL.md +31 -58
  56. package/istm-design/core/design-audit/SKILL.md +248 -0
  57. package/istm-design/core/desktop-principles/SKILL.md +363 -0
  58. package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
  59. package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
  60. package/istm-design/core/mobile-principles/SKILL.md +289 -0
  61. package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
  62. package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
  63. package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
  64. package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
  65. package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
  66. package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
  67. package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
  68. package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  69. package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
  70. package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
  71. package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
  72. package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
  73. package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
  74. package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  75. package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  76. package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  77. package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  78. package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  79. package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  80. package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  81. package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  82. package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  83. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
  84. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  85. package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  86. package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
  87. package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  88. package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  89. package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  90. package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  91. package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  92. package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  93. package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  94. package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  95. package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  96. package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
  97. package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
  98. package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  99. package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  100. package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
  101. package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
  102. package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
  103. package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
  104. package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
  105. package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
  106. package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
  107. package/istm-design/references/apple-design.md +282 -0
  108. package/istm-design/references/generation-guide.md +209 -0
  109. package/istm-design/references/pick-ui-library.md +77 -0
  110. package/istm-design/references/picker.md +197 -0
  111. package/istm-design/references/prototype.md +90 -0
  112. package/istm-design/references/schema.md +366 -0
  113. package/istm-workflow/istm-audit/SKILL.md +7 -7
  114. package/istm-workflow/istm-audit/agent-prompt.md +20 -20
  115. package/istm-workflow/istm-audit/modes/area.md +1 -1
  116. package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
  117. package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
  118. package/istm-workflow/istm-check/SKILL.md +10 -10
  119. package/istm-workflow/istm-check/modes/review.md +9 -9
  120. package/istm-workflow/istm-check/modes/verify.md +19 -19
  121. package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
  122. package/istm-workflow/istm-check/review-guide.md +4 -4
  123. package/istm-workflow/istm-craft/SKILL.md +20 -11
  124. package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
  125. package/istm-workflow/istm-craft/agent-prompt.md +8 -8
  126. package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
  127. package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
  128. package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
  129. package/istm-workflow/istm-craft/spec-template.md +18 -18
  130. package/istm-workflow/istm-debug/SKILL.md +6 -6
  131. package/istm-workflow/istm-develop/SKILL.md +31 -16
  132. package/istm-workflow/istm-develop/checklist.md +1 -1
  133. package/istm-workflow/istm-develop/flow/build.md +21 -21
  134. package/istm-workflow/istm-develop/flow/git.md +4 -4
  135. package/istm-workflow/istm-develop/logical-guide.md +5 -5
  136. package/istm-workflow/istm-develop/ui/implementation.md +2 -2
  137. package/istm-workflow/istm-develop/ui-guide.md +3 -3
  138. package/istm-workflow/istm-document/SKILL.md +6 -6
  139. package/istm-workflow/istm-document/templates/postmortem.md +1 -1
  140. package/istm-workflow/istm-scope/SKILL.md +20 -20
  141. package/istm-workflow/istm-scope/modes/add.md +1 -1
  142. package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
  143. package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
  144. package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
  145. package/istm-workflow/istm-scope/modes/plan.md +16 -16
  146. package/istm-workflow/istm-scope/modes/replan.md +2 -2
  147. package/istm-workflow/istm-scope/scope-template.md +29 -29
  148. package/istm-workflow/istm-sync/SKILL.md +37 -25
  149. package/istm-workflow/istm-sync/agent-prompt.md +37 -19
  150. package/istm-workflow/istm-test/SKILL.md +12 -12
  151. package/istm-workflow/istm-test/modes/setup.md +6 -6
  152. package/istm-workflow/istm-test/writing-guide.md +1 -1
  153. package/package.json +1 -1
@@ -0,0 +1,231 @@
1
+ # PhaseAnimator + KeyframeAnimator deep-dive
2
+
3
+ iOS 17+ shipped two complementary animation primitives: `PhaseAnimator` for ordered state choreography and `KeyframeAnimator` for time-based parallel tracks.
4
+ This file documents when to choose which, gotchas, and combined patterns.
5
+
6
+ ---
7
+
8
+ ## When to choose Phase vs Keyframe
9
+
10
+ | Need | Pick |
11
+ |---|---|
12
+ | 3+ ordered states with springy feel between each | `PhaseAnimator` |
13
+ | Same animation should re-fire on a value change | both, via `trigger:` |
14
+ | Multiple properties animating on independent timelines | `KeyframeAnimator` |
15
+ | Continuous time-based animation (durations matter precisely) | `KeyframeAnimator` |
16
+ | Loop forever on appear | `PhaseAnimator` (no `trigger:` + cycle phases) |
17
+ | One-shot effect on user action (heart pop, success check) | both work; Phase is shorter to write |
18
+ | Custom shape that animates a value | `Animatable` (not these) |
19
+
20
+ ---
21
+
22
+ ## PhaseAnimator deep-dive
23
+
24
+ ### Anatomy
25
+
26
+ ```swift
27
+ view.phaseAnimator(
28
+ Phase.allCases, // CaseIterable + Hashable
29
+ trigger: someValue // optional - re-runs from phase[0] on change
30
+ ) { content, phase in
31
+ content
32
+ .modifier1(...)
33
+ .modifier2(...)
34
+ } animation: { phase in
35
+ // optional - per-phase animation override
36
+ switch phase { ... }
37
+ }
38
+ ```
39
+
40
+ Without `trigger:`, the animator walks through phases once on appear and stops on the last one. With `trigger:`, the animator re-runs from `phases[0]` every time the trigger value changes (it must be `Equatable`).
41
+
42
+ ### Full example: success state with 4 phases
43
+
44
+ ```swift
45
+ enum SuccessPhase: CaseIterable {
46
+ case off, scaleIn, rotate, settle
47
+ }
48
+
49
+ struct SuccessBadge: View {
50
+ @State private var trigger = 0
51
+
52
+ var body: some View {
53
+ Image(systemName: "checkmark.seal.fill")
54
+ .font(.system(size: 80))
55
+ .foregroundStyle(.green)
56
+ .phaseAnimator(SuccessPhase.allCases, trigger: trigger) { view, phase in
57
+ view
58
+ .scaleEffect(scale(for: phase))
59
+ .rotationEffect(rotation(for: phase))
60
+ .opacity(phase == .off ? 0 : 1)
61
+ } animation: { phase in
62
+ switch phase {
63
+ case .off: .smooth(duration: 0.05)
64
+ case .scaleIn: .spring(.bouncy, blendDuration: 0.3)
65
+ case .rotate: .spring(response: 0.45, dampingFraction: 0.7)
66
+ case .settle: .spring(.smooth)
67
+ }
68
+ }
69
+ .onTapGesture { trigger += 1 }
70
+ }
71
+
72
+ private func scale(for phase: SuccessPhase) -> CGFloat {
73
+ switch phase {
74
+ case .off: 0
75
+ case .scaleIn: 1.25
76
+ case .rotate: 1.15
77
+ case .settle: 1.0
78
+ }
79
+ }
80
+
81
+ private func rotation(for phase: SuccessPhase) -> Angle {
82
+ switch phase {
83
+ case .off, .scaleIn: .zero
84
+ case .rotate: .degrees(360)
85
+ case .settle: .degrees(360)
86
+ }
87
+ }
88
+ }
89
+ ```
90
+
91
+ ### Per-phase animation override
92
+
93
+ The `animation: { phase in ... }` closure runs once per phase transition and returns the `Animation` to use *into* that phase. Returning `nil` from a switch case is invalid - return a default like `.smooth` instead.
94
+
95
+ ### Gotchas
96
+
97
+ - Phase enum must be `CaseIterable + Hashable`. SwiftUI walks through `allCases` in declaration order.
98
+ - Transitions are sequential, never parallel. If two properties need to animate on different curves *at the same time*, use `KeyframeAnimator`.
99
+ - Without `trigger:`, the animator settles on the last phase and stops. To loop, repeat the same phase as last and rely on `trigger` toggling, or use `KeyframeAnimator(initialValue:repeating:content:)`.
100
+ - Tap-spam-resistance: increment a counter as `trigger` (`trigger += 1`) instead of toggling a `Bool`. Toggling can collapse rapid taps into a single phase change because SwiftUI dedupes equal values.
101
+ - The phase enum is type-erased to `Hashable` in the API; if you need values inside the phase use associated types or a separate value model.
102
+
103
+ ---
104
+
105
+ ## KeyframeAnimator deep-dive
106
+
107
+ ### Anatomy
108
+
109
+ ```swift
110
+ view.keyframeAnimator(
111
+ initialValue: AnimationValues(), // your custom value type, must be Equatable
112
+ trigger: someValue // optional - omit for one-shot on appear
113
+ ) { content, values in
114
+ content
115
+ .scaleEffect(values.scale)
116
+ .rotationEffect(values.rotation)
117
+ .opacity(values.opacity)
118
+ } keyframes: { initial in
119
+ KeyframeTrack(\.scale) {
120
+ SpringKeyframe(1.3, duration: 0.15)
121
+ SpringKeyframe(1.0, duration: 0.3, spring: .bouncy)
122
+ }
123
+ KeyframeTrack(\.rotation) {
124
+ CubicKeyframe(.degrees(15), duration: 0.1)
125
+ CubicKeyframe(.degrees(-15), duration: 0.2)
126
+ CubicKeyframe(.degrees(0), duration: 0.15)
127
+ }
128
+ }
129
+ ```
130
+
131
+ There's also `keyframeAnimator(initialValue:repeating:content:keyframes:)` (no trigger, repeats forever) for ambient looping animations.
132
+
133
+ ### The 4 keyframe types
134
+
135
+ | Type | Curve | Use |
136
+ |---|---|---|
137
+ | `LinearKeyframe(value, duration:)` | constant velocity | precise mechanical motion |
138
+ | `SpringKeyframe(value, duration:, spring:)` | settles with spring | natural arrival, overshoot |
139
+ | `CubicKeyframe(value, duration:)` | cubic bezier (ease) | classic ease-in/out feel |
140
+ | `MoveKeyframe(value)` | jump cut, no interpolation | reset to a baseline mid-sequence |
141
+
142
+ `SpringKeyframe`'s `spring:` parameter takes the same `Spring` you'd pass to `.spring(...)`. If omitted, uses a default smooth spring.
143
+
144
+ ### Full example: custom loader with parallel tracks
145
+
146
+ ```swift
147
+ struct LoaderValues {
148
+ var rotation: Angle = .zero
149
+ var scale: CGFloat = 1
150
+ var opacity: Double = 1
151
+ }
152
+
153
+ struct PulseLoader: View {
154
+ var body: some View {
155
+ Image(systemName: "arrow.triangle.2.circlepath")
156
+ .font(.system(size: 40))
157
+ .keyframeAnimator(initialValue: LoaderValues(), repeating: true) { content, values in
158
+ content
159
+ .rotationEffect(values.rotation)
160
+ .scaleEffect(values.scale)
161
+ .opacity(values.opacity)
162
+ } keyframes: { _ in
163
+ KeyframeTrack(\.rotation) {
164
+ LinearKeyframe(.degrees(360), duration: 1.5)
165
+ }
166
+ KeyframeTrack(\.scale) {
167
+ CubicKeyframe(1.1, duration: 0.75)
168
+ CubicKeyframe(1.0, duration: 0.75)
169
+ }
170
+ KeyframeTrack(\.opacity) {
171
+ CubicKeyframe(0.6, duration: 0.75)
172
+ CubicKeyframe(1.0, duration: 0.75)
173
+ }
174
+ }
175
+ }
176
+ }
177
+ ```
178
+
179
+ The total duration of each track determines its loop length. SwiftUI runs all tracks in parallel; if their total durations differ, each loops independently within the outer repeat. For a clean repeat, make all track durations equal.
180
+
181
+ ### Trigger semantics
182
+
183
+ `trigger:` re-runs the entire keyframe sequence from `initialValue`. Increment a counter on the trigger side rather than toggling a `Bool` to avoid coalescing rapid events. The animation completes asynchronously - don't read end-state values immediately after setting the trigger.
184
+
185
+ ---
186
+
187
+ ## Combining Phase + Keyframe
188
+
189
+ You can wrap a `KeyframeAnimator` inside a phase to fire complex parallel tracks at a specific point in a state sequence:
190
+
191
+ ```swift
192
+ enum LikePhase: CaseIterable { case idle, hit, settle }
193
+
194
+ struct LikeButton: View {
195
+ @State private var phase: LikePhase = .idle
196
+ @State private var keyTrigger = 0
197
+
198
+ var body: some View {
199
+ Image(systemName: "heart.fill")
200
+ .foregroundStyle(.pink)
201
+ .phaseAnimator([LikePhase.idle, .hit, .settle], trigger: keyTrigger) { view, ph in
202
+ view
203
+ .scaleEffect(ph == .hit ? 1.4 : ph == .settle ? 1.0 : 1.0)
204
+ } animation: { ph in
205
+ switch ph {
206
+ case .idle: .smooth(duration: 0.05)
207
+ case .hit: .spring(.bouncy, blendDuration: 0.2)
208
+ case .settle: .spring(.smooth)
209
+ }
210
+ }
211
+ .onTapGesture { keyTrigger += 1 }
212
+ }
213
+ }
214
+ ```
215
+
216
+ For more exotic compositions (e.g., a keyframe animation playing on every settle into a phase), nest the `KeyframeAnimator` modifier inside the `content` closure of `phaseAnimator`.
217
+
218
+ ---
219
+
220
+ ## iOS 17+ Custom Animation protocol (brief)
221
+
222
+ The `CustomAnimation` protocol lets you build new animation types with full control over the velocity curve. Useful when none of the built-in springs / eases match a brand-specific motion identity. Implementation is non-trivial (you provide `animate(value:time:context:)` returning the interpolated value at time `t`). For 99% of work, the built-in springs + keyframes are enough. Reference: [Apple CustomAnimation](https://developer.apple.com/documentation/swiftui/customanimation).
223
+
224
+ ---
225
+
226
+ ## Sources
227
+
228
+ - [Apple PhaseAnimator](https://developer.apple.com/documentation/swiftui/phaseanimator)
229
+ - [Apple KeyframeAnimator](https://developer.apple.com/documentation/swiftui/keyframeanimator)
230
+ - [WWDC23 Wind your way through advanced animations](https://developer.apple.com/videos/play/wwdc2023/10157/)
231
+ - [Apple CustomAnimation protocol](https://developer.apple.com/documentation/swiftui/customanimation)
@@ -0,0 +1,129 @@
1
+ # Springs Cheat Sheet
2
+
3
+ Spring tuning cheat sheet. `response` (time to settle) vs `dampingFraction` (overshoot intensity, `0...1`).
4
+ Use presets when in doubt; tune only when needed. Keep 3-5 named springs in your design system, no more.
5
+
6
+ ---
7
+
8
+ ## Visual map
9
+
10
+ ```
11
+ dampingFraction
12
+ 0.5 0.7 0.85 1.0
13
+ +------------+------------+------------+------------+
14
+ r 0.2 | TWITCHY | NERVOUS | SNAPPY | CRISP |
15
+ e +------------+------------+------------+------------+
16
+ s 0.4 | BOUNCY | PLAYFUL | SMOOTH | CALM |
17
+ p +------------+------------+------------+------------+
18
+ o 0.6 | WONKY | EXPRESSIVE | FLOATY | SLUGGISH |
19
+ n +------------+------------+------------+------------+
20
+ s 0.8 | UNUSABLE | DRAMATIC | LAZY | DEAD |
21
+ e +------------+------------+------------+------------+
22
+ ```
23
+
24
+ Reading rules:
25
+ - Drop response (move up the table) for UI work that needs to feel snappy.
26
+ - Drop dampingFraction (move left) for moments that should feel alive (success states, celebrations).
27
+ - Stay in the `0.2...0.5` x `0.7...1.0` rectangle for 95% of UI; venture out only for hero moments.
28
+
29
+ ---
30
+
31
+ ## Preset reference (iOS 17+)
32
+
33
+ | Preset | response | dampingFraction | Equivalent in iOS 17+ duration/bounce API |
34
+ |---|---|---|---|
35
+ | `.snappy` | 0.5 | 0.85 | `.spring(duration: 0.5, bounce: 0.15)` |
36
+ | `.bouncy` | 0.5 | 0.7 | `.spring(duration: 0.5, bounce: 0.3)` |
37
+ | `.smooth` | 0.5 | 1.0 | `.spring(duration: 0.5, bounce: 0)` |
38
+ | `.interactiveSpring()` | 0.15 | 0.86 | gesture-follow, very stiff |
39
+
40
+ The two API shapes are equivalent. Pick one and stay consistent across the codebase. The new `(duration:bounce:)` API is more designer-friendly (`bounce` reads as "how much overshoot"); the legacy `(response:dampingFraction:)` API matches WWDC23 documentation more closely.
41
+
42
+ ---
43
+
44
+ ## Recipes by use case
45
+
46
+ ### Tap feedback
47
+ ```swift
48
+ .spring(response: 0.2, dampingFraction: 0.85)
49
+ // or .snappy
50
+ ```
51
+ 40-200ms snap. The user just tapped, they want acknowledgment now.
52
+
53
+ ### Sheet present
54
+ ```swift
55
+ .spring(response: 0.45, dampingFraction: 0.85)
56
+ ```
57
+ Slight overshoot communicates "object arrives". Matches Apple's default sheet-present curve.
58
+
59
+ ### Sheet dismiss
60
+ ```swift
61
+ .spring(response: 0.4, dampingFraction: 1.0)
62
+ // or .smooth
63
+ ```
64
+ No overshoot on exit - exits should be subtler than entrances (motion-principles rule).
65
+
66
+ ### Drag follow (gesture in flight)
67
+ ```swift
68
+ .interactiveSpring(response: 0.15, dampingFraction: 0.86)
69
+ ```
70
+ Stiff and quick; the spring catches up to the finger but doesn't lag. Used in `.onChanged` of a `DragGesture`.
71
+
72
+ ### Hero / page transition
73
+ ```swift
74
+ .spring(response: 0.5, dampingFraction: 0.85)
75
+ ```
76
+ Slightly slower than UI; the user is watching a spatial narrative unfold.
77
+
78
+ ### Bouncy reveal (use sparingly)
79
+ ```swift
80
+ .spring(response: 0.4, dampingFraction: 0.65)
81
+ // or .bouncy
82
+ ```
83
+ For success states, achievement unlocks, "delightful" reveals. Cap usage to 1-2 places per app or it becomes noise.
84
+
85
+ ### Loading shimmer / breathing pulse
86
+ ```swift
87
+ .linear(duration: 1.5).repeatForever(autoreverses: true)
88
+ ```
89
+ Springs are the wrong tool for looping at constant speed. Use `.linear` or `.easeInOut` here.
90
+
91
+ ---
92
+
93
+ ## Custom Animation API (iOS 17+)
94
+
95
+ The `(duration:bounce:)` constructor:
96
+
97
+ ```swift
98
+ .spring(duration: 0.4, bounce: 0.3)
99
+ ```
100
+
101
+ - `duration: TimeInterval` - perceived total time of the spring (similar to response).
102
+ - `bounce: Double` in `0...1` - 0 is critically damped (no overshoot), 1 is full bounce. Designers map this directly: 0.3 = subtle bounce, 0.5 = expressive, 0.8 = celebratory.
103
+
104
+ Internally equivalent to `(response:dampingFraction:)` but the mental model is more natural for designers handing off specs.
105
+
106
+ ---
107
+
108
+ ## Gotchas
109
+
110
+ - **`dampingFraction: 0`** = perpetual oscillation. NEVER ship this. The spring will never settle and the view will animate indefinitely.
111
+ - **`response > 0.6`** feels sluggish on UI elements. Reserve for hero moments (full-screen page transitions, onboarding reveals) or scroll-driven choreography.
112
+ - **Mixing many different springs across the app** = inconsistent feel. Pick 3-5 named springs (e.g., `.tap`, `.sheet`, `.drag`, `.hero`, `.celebrate`) and reuse. Express them as static extensions on `Animation`:
113
+ ```swift
114
+ extension Animation {
115
+ static let appTap = Animation.spring(response: 0.2, dampingFraction: 0.85)
116
+ static let appSheet = Animation.spring(response: 0.45, dampingFraction: 0.85)
117
+ static let appHero = Animation.spring(response: 0.5, dampingFraction: 0.85)
118
+ }
119
+ ```
120
+ - **Spring + non-spring on the same property** stacks confusingly. The outer `withAnimation` wins, but child implicit `.animation(_, value:)` modifiers still trigger; if both fire on the same value the result is unpredictable. Pick one.
121
+ - **`.interactiveSpring` outside of gestures** feels twitchy. Use it only when the value is being driven continuously by the user.
122
+
123
+ ---
124
+
125
+ ## Sources
126
+
127
+ - [GetStream/swiftui-spring-animations](https://github.com/GetStream/swiftui-spring-animations)
128
+ - [WWDC23 Animate with springs](https://developer.apple.com/videos/play/wwdc2023/10158/)
129
+ - [Apple Animation reference](https://developer.apple.com/documentation/swiftui/animation)
@@ -0,0 +1,199 @@
1
+ ---
2
+ name: istm-animate
3
+ description: Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.
4
+ ---
5
+
6
+ # Building Animations
7
+
8
+ A construction skill. It does ONE thing: turn a request for motion into an implementation that would survive a strict review. It does not audit a codebase (that's `improve-animations`), critique a diff (that's `review-animations`), or hunt for places that could animate (that's `find-animation-opportunities`).
9
+
10
+ ## Operating Posture
11
+
12
+ You are a senior design engineer building the animation yourself. The bar is istmX's animation philosophy — the same bar `review-animations` enforces. Write it so it passes that review the first time.
13
+
14
+ Two failure modes, and the first is worse:
15
+
16
+ 1. **Animating something that shouldn't animate.** The gate below exists to produce zero lines of code sometimes. That's a success, not a dodge.
17
+ 2. **Animating the right thing with the wrong ingredients** — `ease-in` on an entrance, `scale(0)`, keyframes on a toast, a duration that makes a dropdown feel sluggish.
18
+
19
+ Never present motion options as a menu. Make the call, state the reasoning in one line, write the code.
20
+
21
+ ## Hard Rules
22
+
23
+ 1. **Run the sequence in order.** Steps 1 and 2 gate everything. Don't reach for a curve before you know whether it animates at all.
24
+ 2. **No approximated values.** Every curve, duration, and spring config comes from the tables below. Never invent `cubic-bezier(0.4, 0, 0.2, 1)` because it looks familiar.
25
+ 3. **Extend the codebase's tokens, don't fork them.** If `--ease-out` or a duration scale already exists, use it. Adding a parallel system is a defect.
26
+ 4. **Reduced motion and hover gating ship with the animation**, not as a follow-up.
27
+ 5. **Cheapest tool that works.** Don't install a motion library for a fade.
28
+
29
+ ## The Build Sequence
30
+
31
+ ### 1. Should this animate at all?
32
+
33
+ | Frequency | Decision |
34
+ | --- | --- |
35
+ | 100+ times/day (keyboard shortcuts, command palette toggle) | **No animation. Ever.** Stop here. |
36
+ | Tens of times/day (hover effects, list navigation) | Near-imperceptible only — fast and subtle, or nothing |
37
+ | Occasional (modals, drawers, toasts) | Standard animation |
38
+ | Rare / first-time (onboarding, success, celebration) | The delight budget lives here |
39
+
40
+ **Keyboard-initiated actions are a disqualifier, not a judgment call.** Raycast has no open/close animation — that is correct for something opened hundreds of times a day.
41
+
42
+ If the request fails this gate, say so plainly and don't write the animation. Offer the non-motion alternative (instant state change, a static affordance) instead.
43
+
44
+ ### 2. What is the purpose?
45
+
46
+ Name it in one of these words before continuing:
47
+
48
+ - **Feedback** — confirming the interface heard the user
49
+ - **Spatial consistency** — showing where something came from or went
50
+ - **State indication** — making a state change legible
51
+ - **Preventing a jarring change** — bridging content that would otherwise teleport
52
+ - **Explanation** — demonstrating how something works (marketing/onboarding only)
53
+ - **Delight** — allowed *only* at the rare/first-time tier
54
+
55
+ Can't name it? Don't build it. "It looks cool" on a frequently-seen element is a reason to stop.
56
+
57
+ Also check **function**: data the user is reading or acting on should not move for style. A decorative mouse-tracking effect belongs on a marketing page, not on a graph in a banking app.
58
+
59
+ ### 3. Pick the tool — cheapest that works
60
+
61
+ Walk down; stop at the first that fits.
62
+
63
+ | Need | Tool |
64
+ | --- | --- |
65
+ | Hover, press, color, a state toggle you control with a class or attribute | **CSS transition** |
66
+ | Entry animation on mount, no JS state | **CSS `@starting-style`** |
67
+ | Predetermined motion that must stay smooth while the page is busy loading | **CSS animation** (runs off the main thread) |
68
+ | Programmatic control with CSS performance, no library | **WAAPI** (`element.animate()`) |
69
+ | Springs, layout animations, exit animations, gesture-driven values | **Motion** (`motion.dev`) |
70
+
71
+ CSS animations beat JS under load — they run off the main thread, while `requestAnimationFrame`-based animation drops frames while the browser loads, scripts, or paints. Use CSS for predetermined motion, JS for dynamic and interruptible motion.
72
+
73
+ If the task needs a *component* rather than an animation — a toast, a drawer, a command menu, a dropdown — stop and invoke `pick-ui-library`. Hand-rolling those is how you end up with a `<div>` dropdown and no focus management.
74
+
75
+ ### 4. Pick the properties
76
+
77
+ - **`transform` and `opacity` only.** They skip layout and paint and run on the GPU. `width`/`height`/`margin`/`padding`/`top`/`left` trigger all three. (`clip-path` is the sanctioned fourth — see RECIPES.md. `height` is tolerated only for accordions, where there's no transform equivalent.)
78
+ - **Never `scale(0)`.** Start from `scale(0.9–0.97)` + `opacity: 0`. Nothing in the real world appears from nothing.
79
+ - **`transform-origin` at the trigger** for popovers, dropdowns, menus, tooltips — `var(--transform-origin)` in Base UI. **Modals are exempt**; they're not anchored to a trigger, so they stay centered.
80
+ - **Percentages in `translate()`** are relative to the element's own size — `translateY(100%)` moves by its own height whatever the content. Prefer over hardcoded pixels.
81
+ - **In Motion, use the full transform string.** `x`/`y`/`scale` shorthands are not hardware-accelerated and drop frames under load:
82
+
83
+ ```jsx
84
+ <motion.div animate={{ x: 100 }} /> // drops frames under load
85
+ <motion.div animate={{ transform: "translateX(100px)" }} /> // hardware accelerated
86
+ ```
87
+
88
+ - **Never drive a child's transform from a CSS variable on the parent** — it recalculates styles for every child. Set `transform` on the element directly.
89
+
90
+ ### 5. Easing and duration — or a spring
91
+
92
+ **Easing**, in decision order:
93
+
94
+ | Situation | Easing |
95
+ | --- | --- |
96
+ | Entering or exiting | `ease-out` |
97
+ | Moving / morphing on screen | `ease-in-out` |
98
+ | Hover / color change | `ease` |
99
+ | Constant motion (marquee, progress) | `linear` |
100
+ | Default | `ease-out` |
101
+
102
+ **Never `ease-in` on UI.** It starts slow, delaying the exact moment the user is watching. `ease-out` at 200ms *feels* faster than `ease-in` at 200ms.
103
+
104
+ Built-in CSS easings are too weak. Use these:
105
+
106
+ ```css
107
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
108
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
109
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Ionic) */
110
+ ```
111
+
112
+ Need a curve that isn't here? Take it from [easing.dev](https://easing.dev/) or [easings.co](https://easings.co/). Don't hand-roll one.
113
+
114
+ **Duration:**
115
+
116
+ | Element | Duration |
117
+ | --- | --- |
118
+ | Button press feedback | 100–160ms |
119
+ | Tooltips, small popovers | 125–200ms |
120
+ | Dropdowns, selects | 150–250ms |
121
+ | Modals, drawers | 200–500ms |
122
+ | Marketing / explanatory | Can be longer |
123
+
124
+ **UI animations stay under 300ms.** A 180ms dropdown feels more responsive than a 400ms one.
125
+
126
+ **Reach for a spring instead** when the motion is drag with momentum, an element that should feel alive, a gesture the user can interrupt or reverse, or decorative mouse-tracking:
127
+
128
+ ```js
129
+ { type: "spring", duration: 0.5, bounce: 0.2 } // Apple-style — easier to reason about
130
+ { type: "spring", mass: 1, stiffness: 100, damping: 10 } // traditional physics — more control
131
+ ```
132
+
133
+ Keep bounce at 0.1–0.3, and avoid bounce in most UI — reserve it for drag-to-dismiss and playful interactions.
134
+
135
+ ### 6. Interruption and exit
136
+
137
+ - **Transitions, not keyframes, for anything triggered rapidly** — toasts, toggles, anything a user can fire twice in a second. Transitions retarget from the current value; keyframes restart from zero.
138
+ - **Springs for gestures**, because they carry velocity through an interruption.
139
+ - **Exit the way it entered.** A toast that slides in from the bottom leaves through the bottom. Symmetric paths are what make swipe-to-dismiss feel obvious.
140
+ - **Asymmetric timing where the user is deciding.** Slow on the deliberate phase (a hold-to-confirm press: 2s linear), snappy on the system response (release: 200ms ease-out).
141
+
142
+ ### 7. Reduced motion and pointer gating
143
+
144
+ Ships with the animation, every time.
145
+
146
+ ```css
147
+ @media (prefers-reduced-motion: reduce) {
148
+ .element { animation: fade 0.2s ease; } /* keep opacity/color, drop transform-based motion */
149
+ }
150
+
151
+ @media (hover: hover) and (pointer: fine) {
152
+ .element:hover { transform: scale(1.05); } /* touch fires false hovers on tap */
153
+ }
154
+ ```
155
+
156
+ ```jsx
157
+ const reduce = useReducedMotion();
158
+ const closedX = reduce ? 0 : '-100%';
159
+ ```
160
+
161
+ Reduced motion means **fewer and gentler** animations, not zero — keep transitions that aid comprehension, remove movement and position changes.
162
+
163
+ ## Recipes
164
+
165
+ For ready-to-build implementations of the common cases — button press, dropdown, tooltip, modal, drawer, toast, accordion, stagger, hold-to-confirm, tab indicator, scroll reveal, drag-to-dismiss — see [RECIPES.md](RECIPES.md). Load it whenever the request matches one of those components; start from the recipe rather than from a blank file.
166
+
167
+ ## Never Ship
168
+
169
+ Self-check before you finish. Each of these is an automatic block in `review-animations`:
170
+
171
+ | Never | Instead |
172
+ | --- | --- |
173
+ | `transition: all` | Name the exact properties |
174
+ | `transform: scale(0)` entrance | `scale(0.95)` + `opacity: 0` |
175
+ | `ease-in` on a UI element | `ease-out` or a strong custom curve |
176
+ | Built-in `ease-out` on a deliberate animation | `cubic-bezier(0.23, 1, 0.32, 1)` |
177
+ | Animation on a keyboard shortcut or 100+/day action | No animation |
178
+ | UI duration over 300ms with no reason | 150–250ms |
179
+ | `transform-origin: center` on a trigger-anchored popover | `var(--transform-origin)` (modals exempt) |
180
+ | Keyframes on toasts, toggles, rapidly-triggered elements | CSS transitions |
181
+ | Animating `width`/`height`/`margin`/`padding`/`top`/`left` | `transform` / `opacity` |
182
+ | Motion `x`/`y`/`scale` props under load | Full `transform` string |
183
+ | Ungated `:hover` motion | `@media (hover: hover) and (pointer: fine)` |
184
+ | Missing `prefers-reduced-motion` | Gentler variant, not zero |
185
+ | Everything entering at once | 30–80ms stagger |
186
+
187
+ ## Output
188
+
189
+ Write the code. Then, in at most a few lines:
190
+
191
+ - **The gate result** — frequency tier and the named purpose. If something in the request was rejected, say which and why.
192
+ - **The ingredients** — tool, properties, curve, duration or spring config, in one line each.
193
+ - **What to feel-check** — if the result depends on feel you can't judge from code (a crossfade, a spring's bounce, the opacity/height balance in an entering list), say so and point at the check: play it at 2–5× duration or in the DevTools animation inspector, step it frame by frame, test gestures on a real device, and look again the next day with fresh eyes.
194
+
195
+ Don't pad this into a report. The code is the deliverable.
196
+
197
+ ## Tone
198
+
199
+ Opinionated and brief. When the honest answer is "this shouldn't animate," give it — that answer is the reason this skill exists. When feel genuinely can't be settled from code, say so instead of guessing at a value.
@@ -0,0 +1,115 @@
1
+ # Animation Audit Playbook
2
+
3
+ The eight audit categories, what to look for in each, and the exact target values to cite in findings and plans. Distilled from istmX's design engineering philosophy ([istmXkowal.ski](https://istmXkowal.ski/)). Never approximate a value that appears here — copy it.
4
+
5
+ ## 1. Purpose & frequency
6
+
7
+ Every animation must answer "why does this animate?" — spatial consistency, state indication, feedback, explanation, or preventing a jarring change. "It looks cool" on a frequently-seen element is not a purpose.
8
+
9
+ | Frequency | Decision |
10
+ | --- | --- |
11
+ | 100+ times/day (keyboard shortcuts, command palette toggle) | No animation. Ever. |
12
+ | Tens of times/day (hover effects, list navigation) | Remove or drastically reduce |
13
+ | Occasional (modals, drawers, toasts) | Standard animation |
14
+ | Rare / first-time (onboarding, feedback, celebrations) | Can add delight |
15
+
16
+ Hunt for: animations on keyboard-initiated actions, command palettes with open/close transitions (Raycast has none — correct), decorative motion on list items or hover states hit constantly. The strongest fix is often **delete the animation**.
17
+
18
+ ## 2. Easing & duration
19
+
20
+ Decision order for easing:
21
+
22
+ - Entering or exiting → **`ease-out`** (starts fast, feels responsive)
23
+ - Moving / morphing on screen → **`ease-in-out`**
24
+ - Hover / color change → **`ease`**
25
+ - Constant motion (marquee, progress) → **`linear`**
26
+ - Default → **`ease-out`**
27
+
28
+ **`ease-in` on UI is always a finding** — it starts slow, delaying the exact moment the user is watching. Built-in CSS easings are too weak for deliberate motion; plans should introduce strong custom curves (as tokens, matching repo conventions):
29
+
30
+ ```css
31
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
32
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
33
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve */
34
+ ```
35
+
36
+ Duration budgets — **UI animations stay under 300ms**:
37
+
38
+ | Element | Duration |
39
+ | --- | --- |
40
+ | Button press feedback | 100–160ms |
41
+ | Tooltips, small popovers | 125–200ms |
42
+ | Dropdowns, selects | 150–250ms |
43
+ | Modals, drawers | 200–500ms |
44
+ | Marketing / explanatory | Can be longer |
45
+
46
+ Hunt for: `ease-in` anywhere, bare `ease`/`linear` on entrances, durations > 300ms on UI elements, tooltip delay + animation on every tooltip in a toolbar (after the first, they should be instant).
47
+
48
+ ## 3. Physicality & origin
49
+
50
+ - **Never `scale(0)`** — nothing in the real world appears from nothing. Target: `scale(0.9–0.97)` + `opacity: 0`.
51
+ - **Popovers/dropdowns/tooltips scale from their trigger**, not center:
52
+ ```css
53
+ .popover { transform-origin: var(--transform-origin); } /* Base UI */
54
+ ```
55
+ **Modals are exempt** — they appear centered; `transform-origin: center` is correct there. Do not report it.
56
+ - **Press feedback**: `transform: scale(0.97)` on `:active` with `transition: transform 160ms ease-out`. Keep it subtle (0.95–0.98).
57
+
58
+ Hunt for: `scale(0)`, pure-fade entrances with no initial transform, `transform-origin: center` (or none) on trigger-anchored elements, pressable elements with no press feedback.
59
+
60
+ ## 4. Interruptibility
61
+
62
+ CSS **transitions** retarget from the current state mid-animation; **keyframes** restart from zero. Anything triggered rapidly or reversible mid-motion (toasts stacking, toggles, drags, expand/collapse) must use transitions or springs.
63
+
64
+ - Entry without JS: `@starting-style` (legacy fallback: a `data-mounted` attribute set in `useEffect`).
65
+ - Gesture-driven motion should use springs — they carry velocity when interrupted.
66
+ - Spring configs, Apple-style (recommended): `{ type: "spring", duration: 0.5, bounce: 0.2 }`. Keep bounce subtle (0.1–0.3); reserve visible bounce for drag-to-dismiss and playful moments.
67
+ - **Asymmetric timing**: deliberate phases (press, hold, destructive confirm) animate slower; the system's response snaps. Symmetric timing on press-and-release is a finding.
68
+
69
+ Hunt for: `@keyframes` on toasts/toggles/rapidly-triggered UI, gesture handlers that tween with fixed-duration keyframes, drags without velocity-based dismissal (dismiss on `Math.abs(distance)/elapsedMs > ~0.11`, not distance thresholds alone), hard stops at drag boundaries instead of rising friction.
70
+
71
+ ## 5. Performance
72
+
73
+ - **Animate `transform` and `opacity` only.** `width`/`height`/`margin`/`padding`/`top`/`left` trigger layout + paint + composite.
74
+ - **`transition: all`** animates unintended properties off-GPU — always a finding.
75
+ - **Framer Motion `x`/`y`/`scale` shorthands are not hardware-accelerated** — they run on the main thread and drop frames under load. Target: the full transform string, `animate={{ transform: "translateX(100px)" }}`.
76
+ - **Don't drive child transforms via a CSS variable on the parent** — it recalcs styles for all children. Set `transform` directly on the element.
77
+ - CSS (and WAAPI) beat rAF-based JS under load — use CSS for predetermined motion, JS/springs for dynamic and gesture-driven motion.
78
+ - Keep transition-time `filter: blur()` under 20px — heavy blur is expensive, especially in Safari.
79
+
80
+ Hunt for: `transition: all`, animated layout properties, Framer Motion shorthand props on busy pages, `setProperty('--x', …)` driving child transforms, rAF loops doing what CSS could.
81
+
82
+ ## 6. Accessibility
83
+
84
+ ```css
85
+ @media (prefers-reduced-motion: reduce) {
86
+ .element { animation: fade 0.2s ease; } /* keep opacity/color, drop movement */
87
+ }
88
+ @media (hover: hover) and (pointer: fine) {
89
+ .element:hover { transform: scale(1.05); } /* touch fires false hovers on tap */
90
+ }
91
+ ```
92
+
93
+ Reduced motion means fewer and gentler animations, **not zero** — keep transitions that aid comprehension, remove position changes. In JS: `useReducedMotion()` and branch transform values.
94
+
95
+ Hunt for: movement with no `prefers-reduced-motion` handling, ungated `:hover` motion, reduced-motion implementations that nuke all feedback.
96
+
97
+ ## 7. Cohesion & tokens
98
+
99
+ - Motion should match the product's personality — playful can be bouncier, a dashboard stays crisp. Mismatched personality across components is a finding.
100
+ - Curves and durations should live as shared tokens. Five hand-typed cubic-beziers that almost match is a consolidation finding.
101
+ - Everything-at-once group entrances where a **30–80ms stagger** belongs. Stagger is decorative — it must never block interaction.
102
+ - A jarring crossfade that shows two overlapping states can be masked with subtle `filter: blur(2px)` during the transition.
103
+
104
+ Hunt for: duplicated near-identical easings/durations, one bouncy component in a crisp app, list/grid entrances with no stagger, crossfades that visibly double-expose.
105
+
106
+ ## 8. Missed opportunities
107
+
108
+ The additive category — places that don't animate but should:
109
+
110
+ - State changes that teleport (content swaps, layout jumps) where a brief transition would prevent a jarring change.
111
+ - Spatially-connected UI (a panel that appears from a trigger) with no motion explaining where it came from.
112
+ - Rare, high-emotion moments (first-run, success, celebration) rendered with none of the delight budget they're allowed.
113
+ - `translate` percentages (`translateY(100%)` = element's own height) and `clip-path: inset()` reveals as tools for these — no hardcoded pixel offsets.
114
+
115
+ Report at most a handful, grounded in actual UX seams you observed — not a wishlist.