@istmx/skills 1.2.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 (111) hide show
  1. package/README.md +38 -20
  2. package/bin/cli.js +50 -24
  3. package/istm-animate/SKILL.md +31 -26
  4. package/istm-animate/core/motion-principles/SKILL.md +284 -0
  5. package/istm-animate/core/motion-principles/references/designers.md +127 -0
  6. package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
  7. package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
  8. package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
  9. package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
  10. package/istm-animate/frameworks/css-native/SKILL.md +319 -0
  11. package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
  12. package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
  13. package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
  14. package/istm-animate/frameworks/gsap/SKILL.md +188 -0
  15. package/istm-animate/frameworks/gsap/references/core.md +218 -0
  16. package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
  17. package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
  18. package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
  19. package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
  20. package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
  21. package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
  22. package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
  23. package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
  24. package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
  25. package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
  26. package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
  27. package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
  28. package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
  29. package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
  30. package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
  31. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
  32. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
  33. package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
  34. package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
  35. package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
  36. package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
  37. package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
  38. package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
  39. package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
  40. package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
  41. package/istm-animate/references/animate.md +199 -0
  42. package/istm-animate/references/audit.md +115 -0
  43. package/istm-animate/references/design-engineering.md +674 -0
  44. package/istm-animate/references/improve.md +101 -0
  45. package/istm-animate/references/opportunities.md +132 -0
  46. package/istm-animate/references/plan-template.md +73 -0
  47. package/istm-animate/references/recipes.md +324 -0
  48. package/istm-animate/references/review.md +112 -0
  49. package/istm-animate/references/standards.md +187 -0
  50. package/istm-animate/references/vocabulary.md +173 -0
  51. package/istm-awwward-designer/SKILL.md +29 -17
  52. package/istm-design/SKILL.md +31 -59
  53. package/istm-design/core/design-audit/SKILL.md +248 -0
  54. package/istm-design/core/desktop-principles/SKILL.md +363 -0
  55. package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
  56. package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
  57. package/istm-design/core/mobile-principles/SKILL.md +289 -0
  58. package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
  59. package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
  60. package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
  61. package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
  62. package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
  63. package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
  64. package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
  65. package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  66. package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
  67. package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
  68. package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
  69. package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
  70. package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
  71. package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  72. package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  73. package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  74. package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  75. package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  76. package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  77. package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  78. package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  79. package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  80. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
  81. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  82. package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  83. package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
  84. package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  85. package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  86. package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  87. package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  88. package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  89. package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  90. package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  91. package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  92. package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  93. package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
  94. package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
  95. package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  96. package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  97. package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
  98. package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
  99. package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
  100. package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
  101. package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
  102. package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
  103. package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
  104. package/istm-design/references/apple-design.md +282 -0
  105. package/istm-design/references/generation-guide.md +209 -0
  106. package/istm-design/references/pick-ui-library.md +77 -0
  107. package/istm-design/references/picker.md +197 -0
  108. package/istm-design/references/prototype.md +90 -0
  109. package/istm-design/references/schema.md +366 -0
  110. package/package.json +1 -1
  111. package/RELEASE_v1.2.0.md +0 -40
@@ -0,0 +1,466 @@
1
+ # Enter/Exit Recipes
2
+
3
+ Copy-paste recipes in CSS, Framer Motion, and GSAP.
4
+ Each recipe includes the BAD pattern (enter without exit) and the GOOD pattern (enter + exit).
5
+
6
+ ---
7
+
8
+ ## 1. Kowalski Style (Minimal)
9
+
10
+ Subtle, almost invisible. `opacity` + tiny `translateY(4px)`. Short spring or fast ease-out.
11
+ Best for: SaaS, productivity tools, frequent UI elements.
12
+
13
+ ### CSS
14
+
15
+ ```css
16
+ /* BAD -- entry without exit */
17
+ .card {
18
+ animation: kowalski-in 0.2s ease-out forwards;
19
+ }
20
+ @keyframes kowalski-in {
21
+ from { opacity: 0; transform: translateY(4px); }
22
+ to { opacity: 1; transform: translateY(0); }
23
+ }
24
+
25
+ /* GOOD -- enter + exit */
26
+ .card {
27
+ animation: kowalski-in 0.2s ease-out forwards;
28
+ }
29
+ .card.exiting {
30
+ animation: kowalski-out 0.15s ease-in forwards;
31
+ }
32
+ @keyframes kowalski-in {
33
+ from { opacity: 0; transform: translateY(4px); }
34
+ to { opacity: 1; transform: translateY(0); }
35
+ }
36
+ @keyframes kowalski-out {
37
+ from { opacity: 1; transform: translateY(0); }
38
+ to { opacity: 0; transform: translateY(2px); }
39
+ }
40
+ ```
41
+
42
+ ### Framer Motion
43
+
44
+ ```tsx
45
+ /* BAD -- no exit */
46
+ <motion.div initial={{ opacity: 0, y: 4 }} animate={{ opacity: 1, y: 0 }} />
47
+
48
+ /* GOOD */
49
+ <AnimatePresence>
50
+ {show && (
51
+ <motion.div
52
+ initial={{ opacity: 0, y: 4 }}
53
+ animate={{ opacity: 1, y: 0 }}
54
+ exit={{ opacity: 0, y: 2 }}
55
+ transition={{ type: "spring", stiffness: 400, damping: 30 }}
56
+ />
57
+ )}
58
+ </AnimatePresence>
59
+ ```
60
+
61
+ ### GSAP
62
+
63
+ ```js
64
+ // BAD -- no exit
65
+ gsap.from('.card', { opacity: 0, y: 4, duration: 0.2, ease: "power2.out" });
66
+
67
+ // GOOD
68
+ function enterCard(el) {
69
+ return gsap.from(el, { opacity: 0, y: 4, duration: 0.2, ease: "power2.out" });
70
+ }
71
+ function exitCard(el) {
72
+ return gsap.to(el, { opacity: 0, y: 2, duration: 0.15, ease: "power1.in" });
73
+ }
74
+ ```
75
+
76
+ ---
77
+
78
+ ## 2. Krehel Style (Material)
79
+
80
+ Rich, layered. `opacity` + `translateY(8px)` + `blur(4px)`. Spring ~0.45s.
81
+ Best for: portfolios, creative sites, landing pages.
82
+
83
+ ### CSS
84
+
85
+ ```css
86
+ /* BAD -- entry without exit */
87
+ .card {
88
+ animation: krehel-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
89
+ }
90
+ @keyframes krehel-in {
91
+ from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
92
+ to { opacity: 1; transform: translateY(0); filter: blur(0); }
93
+ }
94
+
95
+ /* GOOD -- enter + exit */
96
+ .card {
97
+ animation: krehel-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
98
+ }
99
+ .card.exiting {
100
+ animation: krehel-out 0.25s ease-in forwards;
101
+ }
102
+ @keyframes krehel-in {
103
+ from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
104
+ to { opacity: 1; transform: translateY(0); filter: blur(0); }
105
+ }
106
+ @keyframes krehel-out {
107
+ from { opacity: 1; transform: translateY(0); filter: blur(0); }
108
+ to { opacity: 0; transform: translateY(4px); filter: blur(2px); }
109
+ }
110
+ ```
111
+
112
+ ### Framer Motion
113
+
114
+ ```tsx
115
+ /* BAD -- no exit */
116
+ <motion.div
117
+ initial={{ opacity: 0, y: 8, filter: "blur(4px)" }}
118
+ animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
119
+ />
120
+
121
+ /* GOOD */
122
+ <AnimatePresence>
123
+ {show && (
124
+ <motion.div
125
+ initial={{ opacity: 0, y: 8, filter: "blur(4px)" }}
126
+ animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
127
+ exit={{ opacity: 0, y: 4, filter: "blur(2px)" }}
128
+ transition={{ type: "spring", stiffness: 200, damping: 20 }}
129
+ />
130
+ )}
131
+ </AnimatePresence>
132
+ ```
133
+
134
+ ### GSAP
135
+
136
+ ```js
137
+ // BAD -- no exit
138
+ gsap.from('.card', {
139
+ opacity: 0, y: 8, filter: "blur(4px)",
140
+ duration: 0.45, ease: "power3.out"
141
+ });
142
+
143
+ // GOOD
144
+ function enterCard(el) {
145
+ return gsap.from(el, {
146
+ opacity: 0, y: 8, filter: "blur(4px)",
147
+ duration: 0.45, ease: "power3.out"
148
+ });
149
+ }
150
+ function exitCard(el) {
151
+ return gsap.to(el, {
152
+ opacity: 0, y: 4, filter: "blur(2px)",
153
+ duration: 0.25, ease: "power2.in"
154
+ });
155
+ }
156
+ ```
157
+
158
+ ---
159
+
160
+ ## 3. Jhey Style (Playful)
161
+
162
+ Energetic, bouncy. `scale` + `rotate`, bounce/elastic easing.
163
+ Best for: kids apps, playful brands, gamified UI, creative portfolios.
164
+
165
+ ### CSS
166
+
167
+ ```css
168
+ /* BAD -- entry without exit */
169
+ .card {
170
+ animation: jhey-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
171
+ }
172
+ @keyframes jhey-in {
173
+ from { opacity: 0; transform: scale(0.8) rotate(-4deg); }
174
+ to { opacity: 1; transform: scale(1) rotate(0deg); }
175
+ }
176
+
177
+ /* GOOD -- enter + exit */
178
+ .card {
179
+ animation: jhey-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
180
+ }
181
+ .card.exiting {
182
+ animation: jhey-out 0.3s ease-in forwards;
183
+ }
184
+ @keyframes jhey-in {
185
+ from { opacity: 0; transform: scale(0.8) rotate(-4deg); }
186
+ to { opacity: 1; transform: scale(1) rotate(0deg); }
187
+ }
188
+ @keyframes jhey-out {
189
+ from { opacity: 1; transform: scale(1) rotate(0deg); }
190
+ to { opacity: 0; transform: scale(0.9) rotate(2deg); }
191
+ }
192
+ ```
193
+
194
+ ### Framer Motion
195
+
196
+ ```tsx
197
+ /* BAD -- no exit */
198
+ <motion.div
199
+ initial={{ opacity: 0, scale: 0.8, rotate: -4 }}
200
+ animate={{ opacity: 1, scale: 1, rotate: 0 }}
201
+ />
202
+
203
+ /* GOOD */
204
+ <AnimatePresence>
205
+ {show && (
206
+ <motion.div
207
+ initial={{ opacity: 0, scale: 0.8, rotate: -4 }}
208
+ animate={{ opacity: 1, scale: 1, rotate: 0 }}
209
+ exit={{ opacity: 0, scale: 0.9, rotate: 2 }}
210
+ transition={{ type: "spring", stiffness: 600, damping: 15 }}
211
+ />
212
+ )}
213
+ </AnimatePresence>
214
+ ```
215
+
216
+ ### GSAP
217
+
218
+ ```js
219
+ // BAD -- no exit
220
+ gsap.from('.card', {
221
+ opacity: 0, scale: 0.8, rotation: -4,
222
+ duration: 0.6, ease: "back.out(1.7)"
223
+ });
224
+
225
+ // GOOD
226
+ function enterCard(el) {
227
+ return gsap.from(el, {
228
+ opacity: 0, scale: 0.8, rotation: -4,
229
+ duration: 0.6, ease: "back.out(1.7)"
230
+ });
231
+ }
232
+ function exitCard(el) {
233
+ return gsap.to(el, {
234
+ opacity: 0, scale: 0.9, rotation: 2,
235
+ duration: 0.3, ease: "power2.in"
236
+ });
237
+ }
238
+ ```
239
+
240
+ ---
241
+
242
+ ## 4. Snappy Style
243
+
244
+ Fast, professional. `opacity` + `translateY(-8px)` (drops down), ease-out 150ms.
245
+ Best for: dashboards, data-heavy apps, developer tools.
246
+
247
+ ### CSS
248
+
249
+ ```css
250
+ /* BAD -- entry without exit */
251
+ .tooltip {
252
+ animation: snappy-in 0.15s ease-out forwards;
253
+ }
254
+ @keyframes snappy-in {
255
+ from { opacity: 0; transform: translateY(-8px); }
256
+ to { opacity: 1; transform: translateY(0); }
257
+ }
258
+
259
+ /* GOOD -- enter + exit */
260
+ .tooltip {
261
+ animation: snappy-in 0.15s ease-out forwards;
262
+ }
263
+ .tooltip.exiting {
264
+ animation: snappy-out 0.1s ease-in forwards;
265
+ }
266
+ @keyframes snappy-in {
267
+ from { opacity: 0; transform: translateY(-8px); }
268
+ to { opacity: 1; transform: translateY(0); }
269
+ }
270
+ @keyframes snappy-out {
271
+ from { opacity: 1; transform: translateY(0); }
272
+ to { opacity: 0; transform: translateY(-4px); }
273
+ }
274
+ ```
275
+
276
+ ### Framer Motion
277
+
278
+ ```tsx
279
+ /* BAD -- no exit */
280
+ <motion.div initial={{ opacity: 0, y: -8 }} animate={{ opacity: 1, y: 0 }} />
281
+
282
+ /* GOOD */
283
+ <AnimatePresence>
284
+ {show && (
285
+ <motion.div
286
+ initial={{ opacity: 0, y: -8 }}
287
+ animate={{ opacity: 1, y: 0 }}
288
+ exit={{ opacity: 0, y: -4 }}
289
+ transition={{ duration: 0.15, ease: [0, 0, 0.58, 1] }}
290
+ />
291
+ )}
292
+ </AnimatePresence>
293
+ ```
294
+
295
+ ### GSAP
296
+
297
+ ```js
298
+ // BAD -- no exit
299
+ gsap.from('.tooltip', { opacity: 0, y: -8, duration: 0.15, ease: "power2.out" });
300
+
301
+ // GOOD
302
+ function enterTooltip(el) {
303
+ return gsap.from(el, { opacity: 0, y: -8, duration: 0.15, ease: "power2.out" });
304
+ }
305
+ function exitTooltip(el) {
306
+ return gsap.to(el, { opacity: 0, y: -4, duration: 0.1, ease: "power1.in" });
307
+ }
308
+ ```
309
+
310
+ ---
311
+
312
+ ## 5. Cinematic Style
313
+
314
+ Slow, dramatic. `clipPath` reveal, 600ms+. Content revealed through a mask/wipe.
315
+ Best for: hero sections, portfolios, editorial, storytelling.
316
+
317
+ ### CSS
318
+
319
+ ```css
320
+ /* BAD -- entry without exit */
321
+ .hero {
322
+ animation: cinematic-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
323
+ }
324
+ @keyframes cinematic-in {
325
+ from { clip-path: inset(0 100% 0 0); }
326
+ to { clip-path: inset(0 0% 0 0); }
327
+ }
328
+
329
+ /* GOOD -- enter + exit */
330
+ .hero {
331
+ animation: cinematic-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
332
+ }
333
+ .hero.exiting {
334
+ animation: cinematic-out 0.5s ease-in forwards;
335
+ }
336
+ @keyframes cinematic-in {
337
+ from { clip-path: inset(0 100% 0 0); }
338
+ to { clip-path: inset(0 0% 0 0); }
339
+ }
340
+ @keyframes cinematic-out {
341
+ from { clip-path: inset(0 0% 0 0); opacity: 1; }
342
+ to { clip-path: inset(0 0% 0 100%); opacity: 0; }
343
+ }
344
+ ```
345
+
346
+ ### Framer Motion
347
+
348
+ ```tsx
349
+ /* BAD -- no exit */
350
+ <motion.div
351
+ initial={{ clipPath: "inset(0 100% 0 0)" }}
352
+ animate={{ clipPath: "inset(0 0% 0 0)" }}
353
+ transition={{ duration: 0.8, ease: [0.4, 0, 0.2, 1] }}
354
+ />
355
+
356
+ /* GOOD */
357
+ <AnimatePresence>
358
+ {show && (
359
+ <motion.div
360
+ initial={{ clipPath: "inset(0 100% 0 0)" }}
361
+ animate={{ clipPath: "inset(0 0% 0 0)" }}
362
+ exit={{ clipPath: "inset(0 0% 0 100%)", opacity: 0 }}
363
+ transition={{ duration: 0.8, ease: [0.4, 0, 0.2, 1] }}
364
+ />
365
+ )}
366
+ </AnimatePresence>
367
+ ```
368
+
369
+ ### GSAP
370
+
371
+ ```js
372
+ // BAD -- no exit
373
+ gsap.from('.hero', {
374
+ clipPath: "inset(0 100% 0 0)",
375
+ duration: 0.8, ease: "power2.inOut"
376
+ });
377
+
378
+ // GOOD
379
+ function enterHero(el) {
380
+ return gsap.fromTo(el,
381
+ { clipPath: "inset(0 100% 0 0)" },
382
+ { clipPath: "inset(0 0% 0 0)", duration: 0.8, ease: "power2.inOut" }
383
+ );
384
+ }
385
+ function exitHero(el) {
386
+ return gsap.to(el, {
387
+ clipPath: "inset(0 0% 0 100%)", opacity: 0,
388
+ duration: 0.5, ease: "power2.in"
389
+ });
390
+ }
391
+ ```
392
+
393
+ ---
394
+
395
+ ## Stagger Patterns
396
+
397
+ Stagger transforms a group of identical animations into a choreography.
398
+
399
+ ### CSS (with custom properties)
400
+
401
+ ```css
402
+ .card { animation: fade-up 0.3s ease-out forwards; animation-delay: calc(var(--i) * 50ms); opacity: 0; }
403
+ /* Set --i via inline style or nth-child */
404
+ .card:nth-child(1) { --i: 0; }
405
+ .card:nth-child(2) { --i: 1; }
406
+ .card:nth-child(3) { --i: 2; }
407
+ ```
408
+
409
+ ### Framer Motion (variants)
410
+
411
+ ```tsx
412
+ const container = {
413
+ hidden: {},
414
+ show: { transition: { staggerChildren: 0.05, delayChildren: 0.1 } },
415
+ exit: { transition: { staggerChildren: 0.03, staggerDirection: -1 } },
416
+ };
417
+ const item = {
418
+ hidden: { opacity: 0, y: 8 },
419
+ show: { opacity: 1, y: 0 },
420
+ exit: { opacity: 0, y: 4 },
421
+ };
422
+
423
+ <motion.ul variants={container} initial="hidden" animate="show" exit="exit">
424
+ {items.map((item) => (
425
+ <motion.li key={item.id} variants={item} />
426
+ ))}
427
+ </motion.ul>
428
+ ```
429
+
430
+ ### GSAP
431
+
432
+ ```js
433
+ // Linear stagger
434
+ gsap.from('.card', {
435
+ opacity: 0, y: 20,
436
+ duration: 0.4, ease: "power2.out",
437
+ stagger: 0.06
438
+ });
439
+
440
+ // Center-out stagger (items animate from center outward)
441
+ gsap.from('.card', {
442
+ opacity: 0, y: 20,
443
+ duration: 0.4, ease: "power2.out",
444
+ stagger: { each: 0.06, from: "center" }
445
+ });
446
+
447
+ // Grid stagger (2D distribution)
448
+ gsap.from('.grid-item', {
449
+ opacity: 0, scale: 0.95,
450
+ duration: 0.4, ease: "power2.out",
451
+ stagger: { each: 0.04, from: "start", grid: [4, 4] }
452
+ });
453
+ ```
454
+
455
+ ---
456
+
457
+ ## Summary: Which Recipe for Which Project?
458
+
459
+ | Project Type | Primary Recipe | Stagger | Timing |
460
+ |---|---|---|---|
461
+ | SaaS / Dashboard | Kowalski or Snappy | 40-60ms | 150-250ms |
462
+ | Portfolio / Agency | Krehel or Cinematic | 60-100ms | 300-600ms |
463
+ | E-commerce | Kowalski (products), Snappy (filters) | 50ms | 150-300ms |
464
+ | Landing page | Krehel (hero), Cinematic (sections) | 80-120ms | 400-800ms |
465
+ | Kids / Game UI | Jhey | 60-80ms | 300-600ms |
466
+ | Developer tools | Snappy | 30-50ms | 100-200ms |