@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.
- package/CODE_OF_CONDUCT.md +47 -0
- package/LICENSE +30 -0
- package/README.md +48 -22
- package/bin/cli.js +130 -119
- package/istm-animate/SKILL.md +28 -58
- package/istm-animate/core/motion-principles/SKILL.md +284 -0
- package/istm-animate/core/motion-principles/references/designers.md +127 -0
- package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
- package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
- package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
- package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
- package/istm-animate/frameworks/css-native/SKILL.md +319 -0
- package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
- package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
- package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
- package/istm-animate/frameworks/gsap/SKILL.md +188 -0
- package/istm-animate/frameworks/gsap/references/core.md +218 -0
- package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
- package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
- package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
- package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
- package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
- package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
- package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
- package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
- package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
- package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
- package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
- package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
- package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
- package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
- package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
- package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
- package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
- package/istm-animate/references/animate.md +199 -0
- package/istm-animate/references/audit.md +115 -0
- package/istm-animate/references/design-engineering.md +674 -0
- package/istm-animate/references/improve.md +101 -0
- package/istm-animate/references/opportunities.md +132 -0
- package/istm-animate/references/plan-template.md +73 -0
- package/istm-animate/references/recipes.md +324 -0
- package/istm-animate/references/review.md +112 -0
- package/istm-animate/references/standards.md +187 -0
- package/istm-animate/references/vocabulary.md +173 -0
- package/istm-architecture/SKILL.md +10 -1
- package/istm-awwward-designer/SKILL.md +28 -20
- package/istm-design/SKILL.md +31 -58
- package/istm-design/core/design-audit/SKILL.md +248 -0
- package/istm-design/core/desktop-principles/SKILL.md +363 -0
- package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
- package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
- package/istm-design/core/mobile-principles/SKILL.md +289 -0
- package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
- package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
- package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
- package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
- package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
- package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
- package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
- package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
- package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
- package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
- package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
- package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
- package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
- package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
- package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
- package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
- package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
- package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
- package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
- package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
- package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
- package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
- package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
- package/istm-design/references/apple-design.md +282 -0
- package/istm-design/references/generation-guide.md +209 -0
- package/istm-design/references/pick-ui-library.md +77 -0
- package/istm-design/references/picker.md +197 -0
- package/istm-design/references/prototype.md +90 -0
- package/istm-design/references/schema.md +366 -0
- package/istm-workflow/istm-audit/SKILL.md +7 -7
- package/istm-workflow/istm-audit/agent-prompt.md +20 -20
- package/istm-workflow/istm-audit/modes/area.md +1 -1
- package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
- package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
- package/istm-workflow/istm-check/SKILL.md +10 -10
- package/istm-workflow/istm-check/modes/review.md +9 -9
- package/istm-workflow/istm-check/modes/verify.md +19 -19
- package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
- package/istm-workflow/istm-check/review-guide.md +4 -4
- package/istm-workflow/istm-craft/SKILL.md +20 -11
- package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
- package/istm-workflow/istm-craft/agent-prompt.md +8 -8
- package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
- package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
- package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
- package/istm-workflow/istm-craft/spec-template.md +18 -18
- package/istm-workflow/istm-debug/SKILL.md +6 -6
- package/istm-workflow/istm-develop/SKILL.md +31 -16
- package/istm-workflow/istm-develop/checklist.md +1 -1
- package/istm-workflow/istm-develop/flow/build.md +21 -21
- package/istm-workflow/istm-develop/flow/git.md +4 -4
- package/istm-workflow/istm-develop/logical-guide.md +5 -5
- package/istm-workflow/istm-develop/ui/implementation.md +2 -2
- package/istm-workflow/istm-develop/ui-guide.md +3 -3
- package/istm-workflow/istm-document/SKILL.md +6 -6
- package/istm-workflow/istm-document/templates/postmortem.md +1 -1
- package/istm-workflow/istm-scope/SKILL.md +20 -20
- package/istm-workflow/istm-scope/modes/add.md +1 -1
- package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
- package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
- package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
- package/istm-workflow/istm-scope/modes/plan.md +16 -16
- package/istm-workflow/istm-scope/modes/replan.md +2 -2
- package/istm-workflow/istm-scope/scope-template.md +29 -29
- package/istm-workflow/istm-sync/SKILL.md +37 -25
- package/istm-workflow/istm-sync/agent-prompt.md +37 -19
- package/istm-workflow/istm-test/SKILL.md +12 -12
- package/istm-workflow/istm-test/modes/setup.md +6 -6
- package/istm-workflow/istm-test/writing-guide.md +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Easing Guide
|
|
2
|
+
|
|
3
|
+
Complete reference for easing functions across CSS, GSAP, and Framer Motion.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## CSS Easings
|
|
8
|
+
|
|
9
|
+
### Built-in Keywords
|
|
10
|
+
|
|
11
|
+
| Keyword | cubic-bezier | When to Use | Feel |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| `ease` | `(0.25, 0.1, 0.25, 1.0)` | General-purpose default | Smooth, slightly fast start |
|
|
14
|
+
| `ease-in` | `(0.42, 0, 1.0, 1.0)` | **Exits only.** Element leaving the screen | Slow start, fast end (accelerating away) |
|
|
15
|
+
| `ease-out` | `(0, 0, 0.58, 1.0)` | **Entries.** Element appearing on screen | Fast start, smooth landing |
|
|
16
|
+
| `ease-in-out` | `(0.42, 0, 0.58, 1.0)` | State changes (color, position shift) | Symmetric acceleration/deceleration |
|
|
17
|
+
| `linear` | `(0, 0, 1.0, 1.0)` | Scroll-synced, progress bars, spinners | Mechanical, constant speed |
|
|
18
|
+
|
|
19
|
+
### Common cubic-bezier Recipes
|
|
20
|
+
|
|
21
|
+
| Name | Value | Use Case |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| Snappy UI | `cubic-bezier(0.2, 0, 0, 1)` | Modals, drawers, fast UI |
|
|
24
|
+
| Material Design Standard | `cubic-bezier(0.4, 0, 0.2, 1)` | General Material transitions |
|
|
25
|
+
| Material Decelerate | `cubic-bezier(0, 0, 0.2, 1)` | Entries in Material Design |
|
|
26
|
+
| Material Accelerate | `cubic-bezier(0.4, 0, 1, 1)` | Exits in Material Design |
|
|
27
|
+
| Apple ease | `cubic-bezier(0.25, 0.1, 0.25, 1)` | iOS-style smooth transitions |
|
|
28
|
+
| Vercel/Geist | `cubic-bezier(0.16, 1, 0.3, 1)` | Snappy with soft landing |
|
|
29
|
+
| Overshoot | `cubic-bezier(0.34, 1.56, 0.64, 1)` | Playful entries, slight bounce past target |
|
|
30
|
+
| Dramatic exit | `cubic-bezier(0.55, 0, 1, 0.45)` | Fast aggressive exit |
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
/* Example: snappy modal entry */
|
|
34
|
+
.modal {
|
|
35
|
+
transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1),
|
|
36
|
+
opacity 0.25s cubic-bezier(0.2, 0, 0, 1);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### CSS linear() Function
|
|
41
|
+
|
|
42
|
+
Creates custom easing curves with multiple stops. Useful for spring-like or bounce effects in pure CSS.
|
|
43
|
+
|
|
44
|
+
```css
|
|
45
|
+
/* Spring-like bounce */
|
|
46
|
+
.bounce-enter {
|
|
47
|
+
transition: transform 0.5s linear(
|
|
48
|
+
0, 0.004, 0.016, 0.035, 0.063, 0.098, 0.141, 0.191,
|
|
49
|
+
0.25, 0.316, 0.391, 0.473, 0.562, 0.659, 0.763, 0.876,
|
|
50
|
+
1, 1.097, 1.159, 1.185, 1.176, 1.142, 1.092, 1.035,
|
|
51
|
+
0.984, 0.946, 0.925, 0.92, 0.929, 0.946, 0.969, 0.991,
|
|
52
|
+
1.006, 1.015, 1.017, 1.013, 1.006, 1
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
> **Tool:** Use [linear-easing-generator.netlify.app](https://linear-easing-generator.netlify.app/) to convert spring configs to `linear()`.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## GSAP Easings
|
|
62
|
+
|
|
63
|
+
GSAP uses string-based easing: `"power2.out"`, `"back.inOut"`, `"elastic.out(1, 0.3)"`.
|
|
64
|
+
|
|
65
|
+
### Power Easings
|
|
66
|
+
|
|
67
|
+
| Ease | Intensity | Equivalent CSS | Best For |
|
|
68
|
+
|---|---|---|---|
|
|
69
|
+
| `power1` (a.k.a. `quad`) | Subtle | Close to `ease` | Subtle UI transitions |
|
|
70
|
+
| `power2` (a.k.a. `cubic`) | Medium | Close to `ease-out` | General purpose, entries |
|
|
71
|
+
| `power3` (a.k.a. `quart`) | Strong | More aggressive | Dramatic reveals |
|
|
72
|
+
| `power4` (a.k.a. `quint`) | Very strong | Very aggressive | Hero animations, impact |
|
|
73
|
+
| `none` / `linear` | Zero | `linear` | Scroll-driven |
|
|
74
|
+
|
|
75
|
+
**Suffix rules:** `.out` = entry, `.in` = exit, `.inOut` = state change.
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
// Subtle card entry
|
|
79
|
+
gsap.from('.card', { opacity: 0, y: 20, duration: 0.4, ease: "power2.out" });
|
|
80
|
+
|
|
81
|
+
// Dramatic hero reveal
|
|
82
|
+
gsap.from('.hero', { opacity: 0, y: 60, duration: 0.8, ease: "power4.out" });
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Special Easings
|
|
86
|
+
|
|
87
|
+
| Ease | Config | Feel | Use Case |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| `back` | `back.out(1.7)` | Overshoots then settles | Playful entries, modals |
|
|
90
|
+
| `bounce` | `bounce.out` | Bounces at the end | Game UI, notifications, playful |
|
|
91
|
+
| `elastic` | `elastic.out(1, 0.3)` | Spring-like wobble | Attention-grabbing, fun UI |
|
|
92
|
+
| `slow` | `slow(0.7, 0.7, false)` | Slow middle section | Cinematic reveals |
|
|
93
|
+
| `steps` | `steps(12)` | Frame-by-frame | Sprite animations, retro |
|
|
94
|
+
| `rough` | `rough({ strength: 1, points: 20, ... })` | Shaky/glitchy | Horror, distortion effects |
|
|
95
|
+
| `circ` | `circ.out` | Circular motion curve | Natural motion arcs |
|
|
96
|
+
| `expo` | `expo.out` | Very fast then very slow | Snappy professional UI |
|
|
97
|
+
|
|
98
|
+
```js
|
|
99
|
+
// Playful notification bounce
|
|
100
|
+
gsap.from('.notification', {
|
|
101
|
+
y: -100,
|
|
102
|
+
duration: 0.6,
|
|
103
|
+
ease: "back.out(1.7)"
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// Elastic attention-grab
|
|
107
|
+
gsap.from('.badge', {
|
|
108
|
+
scale: 0,
|
|
109
|
+
duration: 0.8,
|
|
110
|
+
ease: "elastic.out(1, 0.3)"
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// Cinematic title reveal
|
|
114
|
+
gsap.from('.title', {
|
|
115
|
+
opacity: 0,
|
|
116
|
+
y: 40,
|
|
117
|
+
duration: 1.2,
|
|
118
|
+
ease: "expo.out"
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Custom Ease
|
|
123
|
+
|
|
124
|
+
```js
|
|
125
|
+
// Register a reusable custom ease
|
|
126
|
+
gsap.registerEase("mySnap", function(progress) {
|
|
127
|
+
return Math.round(progress * 10) / 10; // Snap to 10 steps
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
gsap.to('.el', { x: 200, ease: "mySnap" });
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Spring Configs
|
|
136
|
+
|
|
137
|
+
Springs produce natural, physics-based motion. No fixed duration -- the spring resolves when it reaches equilibrium.
|
|
138
|
+
|
|
139
|
+
### Framer Motion Springs
|
|
140
|
+
|
|
141
|
+
Three parameters: `stiffness`, `damping`, `mass`.
|
|
142
|
+
|
|
143
|
+
| Preset | Stiffness | Damping | Mass | Feel | Use Case |
|
|
144
|
+
|---|---|---|---|---|---|
|
|
145
|
+
| Snappy UI | 400 | 30 | 1 | Fast, no overshoot | Buttons, toggles, menus |
|
|
146
|
+
| Default | 100 | 10 | 1 | Noticeable bounce | General entries |
|
|
147
|
+
| Gentle | 120 | 14 | 1 | Soft landing | Cards, modals |
|
|
148
|
+
| Bouncy | 600 | 15 | 1 | Strong overshoot | Playful, attention-grab |
|
|
149
|
+
| Slow | 50 | 10 | 1 | Sluggish, heavy | Large elements, page transitions |
|
|
150
|
+
| Heavy | 200 | 20 | 2 | Weighty, deliberate | Drag-and-drop, physics-sim |
|
|
151
|
+
|
|
152
|
+
```tsx
|
|
153
|
+
// Snappy button
|
|
154
|
+
<motion.button
|
|
155
|
+
whileTap={{ scale: 0.97 }}
|
|
156
|
+
transition={{ type: "spring", stiffness: 400, damping: 30 }}
|
|
157
|
+
/>
|
|
158
|
+
|
|
159
|
+
// Bouncy modal entry
|
|
160
|
+
<motion.div
|
|
161
|
+
initial={{ opacity: 0, scale: 0.95, y: 10 }}
|
|
162
|
+
animate={{ opacity: 1, scale: 1, y: 0 }}
|
|
163
|
+
transition={{ type: "spring", stiffness: 300, damping: 20 }}
|
|
164
|
+
/>
|
|
165
|
+
|
|
166
|
+
// Gentle card
|
|
167
|
+
<motion.div
|
|
168
|
+
initial={{ opacity: 0, y: 20 }}
|
|
169
|
+
animate={{ opacity: 1, y: 0 }}
|
|
170
|
+
transition={{ type: "spring", stiffness: 120, damping: 14 }}
|
|
171
|
+
/>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Duration-based spring shorthand:**
|
|
175
|
+
|
|
176
|
+
```tsx
|
|
177
|
+
// Framer Motion also accepts duration + bounce (0 = no bounce, 1 = max bounce)
|
|
178
|
+
<motion.div
|
|
179
|
+
transition={{ type: "spring", duration: 0.4, bounce: 0.2 }}
|
|
180
|
+
/>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### GSAP Spring-like Behavior
|
|
184
|
+
|
|
185
|
+
GSAP does not have a true spring system, but you can approximate springs:
|
|
186
|
+
|
|
187
|
+
**Option 1: `elastic` ease**
|
|
188
|
+
```js
|
|
189
|
+
gsap.from('.el', {
|
|
190
|
+
scale: 0.95,
|
|
191
|
+
opacity: 0,
|
|
192
|
+
duration: 0.8,
|
|
193
|
+
ease: "elastic.out(1, 0.4)" // amplitude, period
|
|
194
|
+
});
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Option 2: `back` ease (subtle overshoot)**
|
|
198
|
+
```js
|
|
199
|
+
gsap.from('.el', {
|
|
200
|
+
y: 20,
|
|
201
|
+
opacity: 0,
|
|
202
|
+
duration: 0.5,
|
|
203
|
+
ease: "back.out(1.4)" // overshoot amount
|
|
204
|
+
});
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Option 3: InertiaPlugin (true physics)**
|
|
208
|
+
```js
|
|
209
|
+
// Requires InertiaPlugin (Club GSAP)
|
|
210
|
+
gsap.to('.el', {
|
|
211
|
+
inertia: {
|
|
212
|
+
x: 500, // velocity
|
|
213
|
+
resistance: 200
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Decision Matrix: Which Easing When?
|
|
221
|
+
|
|
222
|
+
| Scenario | CSS | GSAP | Framer Motion |
|
|
223
|
+
|---|---|---|---|
|
|
224
|
+
| Hover/focus state | `ease-out` or `cubic-bezier(0.2,0,0,1)` | `power2.out` | `type: "tween", ease: "easeOut"` |
|
|
225
|
+
| Modal entry | `cubic-bezier(0.16, 1, 0.3, 1)` | `power3.out` or `back.out(1.4)` | `type: "spring", stiffness: 300, damping: 25` |
|
|
226
|
+
| Modal exit | `ease-in` or `cubic-bezier(0.4, 0, 1, 1)` | `power2.in` | `type: "tween", ease: "easeIn", duration: 0.15` |
|
|
227
|
+
| List stagger | `ease-out` | `power2.out` with `stagger: 0.05` | Spring + `staggerChildren: 0.05` |
|
|
228
|
+
| Scroll-driven | `linear` | `none` | N/A (use `useScroll`) |
|
|
229
|
+
| Page transition | `cubic-bezier(0.4, 0, 0.2, 1)` | `power2.inOut` | `type: "tween", ease: "easeInOut"` |
|
|
230
|
+
| Bounce / playful | `linear(...)` bounce curve | `bounce.out` or `elastic.out` | `type: "spring", stiffness: 600, damping: 15` |
|
|
231
|
+
| Drag release | N/A | `power3.out` | `type: "spring", stiffness: 400, damping: 30` |
|
|
@@ -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 |
|