Motion Seed Applier
When NOT to use
- For general framer-motion docs or learning → use the framer-motion site
- For non-React motion (CSS-only transitions, GSAP) — this skill targets
motion.X JSX only
- For full scroll-linked timelines or parallax — out of scope per DESIGN-LANGUAGE.md Rule 59
- For tweaking the existing FadeIn/FadeUp/Stagger wrappers — edit
engine/components/ui/motion.tsx directly
Vibe → Seed mapping
Translate the user's prompt to one of the five seeds before applying. Use this lookup table from engine/motion/index.ts:
| Words the user might say |
Seed |
| bouncy, springy, playful, energetic, alive |
Spring |
| smooth, silky, fluid, elegant, composed, continuous |
Silk |
| snappy, quick, instant, decisive, sharp, precise |
Snap |
| floaty, gentle, weightless, dreamy, ambient, drifting |
Float |
| rhythmic, punchy, pulsing, heartbeat, beat |
Pulse |
| "Toss style", "Arc style" |
Spring (per brand default) |
| "Stripe style", "Notion style" |
Silk |
| "Linear style", "Raycast style", "Vercel style" |
Snap |
If the user says only a brand name, use that brand's default seed from BRAND_DEFAULT_SEED. If the user is explicit about a seed name (spring, silk, etc.), respect it verbatim.
Named motion keywords (distinctive moves)
Seeds set a personality (how a fade/scale feels). The motion library in
engine/motion/library.ts adds distinctive moves — a flip, a curtain wipe, a
morph — each behind a unique keyword. Prefer a keyword when the user wants a
specific, recognizable motion rather than a generic feel.
engine/motion/library.ts (exported as MOTION_LIBRARY / MOTION_BY_KEY from
@engine/motion) is the single source of truth — every keyword carries its
own runnable snippet. Pull the snippet from there; never hand-write the params.
| Keyword |
Move |
Say it when the user wants… |
toggle-flip |
3D Y-axis card flip |
a switch/toggle to flip between two faces |
toggle-slide |
slide-stack swap |
a value to slide out and the next to slide in |
toggle-morph |
pill ⇄ circle morph |
a control to change shape on toggle |
toggle-curtain |
top→bottom clip-path wipe |
a panel to reveal like a curtain |
reveal-blur |
blur(12px)→0 focus-in |
content to focus-pull into place |
reveal-rise |
masked clip-path text rise |
a headline/text to climb into view |
reveal-unfold |
scaleY from top edge |
an accordion/panel to unfold |
pop-in |
spring overshoot from 0 |
a badge/checkmark to pop in bouncily |
press-squish |
scale-down + skew |
a button to feel jelly/tactile on tap |
tap-ripple |
radial ripple from tap |
Material-style press feedback |
pulse-beat |
looping scale pulse |
a live/recording/heartbeat indicator |
wiggle |
quick horizontal shake |
error / invalid-input feedback |
shimmer |
skeleton loading sweep |
a loading placeholder |
stagger-cascade |
children fade-up in sequence |
a list to animate in one-by-one |
Applying a keyword:
- Read the exact recipe from
engine/motion/library.ts — find the entry whose
key matches, copy its snippet verbatim (it is calibrated and runnable).
- Adapt only the element/content to the user's JSX; keep the transition values.
- If the keyword is stateful (toggles, ripple), wire the
useState shown in the
snippet. If it's a one-shot reveal, a key bump replays it.
- Tell the user the keyword you applied so they can reuse it elsewhere for
consistency, and point them at
/motion to preview/Copy others.
If the user describes a move but no exact keyword fits, fall back to a seed +
context. If they say a keyword that doesn't exist, suggest the closest real one
from the table — never invent a keyword.
Context detection
Infer one of the five contexts from the prompt:
- "on hover" / "when hovered" →
hover
- "on press" / "on tap" / "on click" →
press
- "when it appears" / "on mount" / "entering" →
entrance
- "when it leaves" / "on close" / "exiting" →
exit (requires <AnimatePresence>)
- "when layout changes" / "FLIP" / "rearranging" →
layout
If ambiguous, default to entrance. If multiple contexts are reasonable (e.g., a button needs both hover and press), apply both.
Application steps
Apply seed: $0 · Context: $1 · Target: $ARGUMENTS
Read the target file at the path given (or, if no path was given, ask the user which file). Locate the JSX element the user is talking about — usually a <button>, <div>, <Card>, or similar.
Confirm the import paths. The component file must be able to import:
motion (and AnimatePresence for exit) from "framer-motion"
- the chosen seed from
"@engine/motion" — in a project that doesn't use the @engine/* alias, use a relative path to engine/motion
Replace the target tag with a <motion.X> and spread the seed's recipe:
// hover example
<motion.button {...spring.hover}>Save</motion.button>
// press + hover combined
<motion.button {...spring.press} {...spring.hover}>Save</motion.button>
// entrance (mount)
<motion.div {...silk.entrance}>...</motion.div>
// exit (requires AnimatePresence wrapper somewhere up the tree)
<AnimatePresence>
{open && <motion.div {...silk.entrance} {...silk.exit} />}
</AnimatePresence>
// layout (FLIP)
<motion.div {...snap.layout}>...</motion.div>
Do NOT inline the params. The whole point of the seed is that the values come from one source. Never expand { type: "spring", stiffness: 300, damping: 18 } into the JSX — always spread the recipe.
Respect prefers-reduced-motion in long-running surfaces. For one-off interactions (hover/press), framer-motion already throttles. For mount/exit/layout sequences in a long-lived page, import usePrefersReducedMotion and REDUCED_TRANSITION from @engine/motion and override the transition when reduced motion is on.
Validate by re-reading the file and confirming the JSX still parses (matching brackets, motion tag closed, AnimatePresence in place if exit was used).
Tell the user which seed and context you applied, and offer one related context they might want next ("Want press too so it feels clickable?").
Defaults if the user is vague
- No file given → ask "which file?"
- No vibe word → ask "any vibe word, brand, or seed name?"
- Vibe is "natural" or "feel like a real app" → default to Silk (the safest of the five)
- Element is a CTA button → also apply
press
Forbidden
- Do not invent new seed names. There are exactly five.
- Do not edit
engine/motion/seeds/*.ts from this skill — those are calibrated by hand. Add a new seed only via a separate, explicit ask.
- Do not introduce a third-party animation lib (gsap, anime.js). StyleSeed targets framer-motion exclusively.
- Do not add scroll-linked, parallax, or infinite animations (DESIGN-LANGUAGE.md Rule 59).
1---2name: ss-motion3description: Apply a named StyleSeed motion to a component — either one of the 5 personality seeds (Spring/Silk/Snap/Float/Pulse × entrance/exit/hover/press/layout) or a distinctive keyword move from the motion library (toggle-flip, toggle-curtain, reveal-blur, pop-in, shimmer, …). Translates vibe words into framer-motion code from one source of truth.4---5
6# Motion Seed Applier
7
8## When NOT to use
9
10- For general framer-motion docs or learning → use the framer-motion site
11- For non-React motion (CSS-only transitions, GSAP) — this skill targets `motion.X` JSX only
12- For full scroll-linked timelines or parallax — out of scope per DESIGN-LANGUAGE.md Rule 59
13- For tweaking the existing FadeIn/FadeUp/Stagger wrappers — edit `engine/components/ui/motion.tsx` directly
14
15## Vibe → Seed mapping
16
17Translate the user's prompt to one of the five seeds before applying. Use this lookup table from `engine/motion/index.ts`:
18
19| Words the user might say | Seed |
20|---|---|
21| bouncy, springy, playful, energetic, alive | **Spring** |
22| smooth, silky, fluid, elegant, composed, continuous | **Silk** |
23| snappy, quick, instant, decisive, sharp, precise | **Snap** |
24| floaty, gentle, weightless, dreamy, ambient, drifting | **Float** |
25| rhythmic, punchy, pulsing, heartbeat, beat | **Pulse** |
26| "Toss style", "Arc style" | **Spring** (per brand default) |
27| "Stripe style", "Notion style" | **Silk** |
28| "Linear style", "Raycast style", "Vercel style" | **Snap** |
29
30If the user says only a *brand* name, use that brand's default seed from `BRAND_DEFAULT_SEED`. If the user is explicit about a seed name (`spring`, `silk`, etc.), respect it verbatim.
31
32## Named motion keywords (distinctive moves)
33
34Seeds set a *personality* (how a fade/scale feels). The **motion library** in
35`engine/motion/library.ts` adds *distinctive moves* — a flip, a curtain wipe, a
36morph — each behind a unique keyword. Prefer a keyword when the user wants a
37specific, recognizable motion rather than a generic feel.
38
39`engine/motion/library.ts` (exported as `MOTION_LIBRARY` / `MOTION_BY_KEY` from
40`@engine/motion`) is the **single source of truth** — every keyword carries its
41own runnable `snippet`. Pull the snippet from there; never hand-write the params.
42
43| Keyword | Move | Say it when the user wants… |
44|---|---|---|
45| `toggle-flip` | 3D Y-axis card flip | a switch/toggle to flip between two faces |
46| `toggle-slide` | slide-stack swap | a value to slide out and the next to slide in |
47| `toggle-morph` | pill ⇄ circle morph | a control to change shape on toggle |
48| `toggle-curtain` | top→bottom clip-path wipe | a panel to reveal like a curtain |
49| `reveal-blur` | blur(12px)→0 focus-in | content to focus-pull into place |
50| `reveal-rise` | masked clip-path text rise | a headline/text to climb into view |
51| `reveal-unfold` | scaleY from top edge | an accordion/panel to unfold |
52| `pop-in` | spring overshoot from 0 | a badge/checkmark to pop in bouncily |
53| `press-squish` | scale-down + skew | a button to feel jelly/tactile on tap |
54| `tap-ripple` | radial ripple from tap | Material-style press feedback |
55| `pulse-beat` | looping scale pulse | a live/recording/heartbeat indicator |
56| `wiggle` | quick horizontal shake | error / invalid-input feedback |
57| `shimmer` | skeleton loading sweep | a loading placeholder |
58| `stagger-cascade` | children fade-up in sequence | a list to animate in one-by-one |
59
60**Applying a keyword:**
61
621. Read the exact recipe from `engine/motion/library.ts` — find the entry whose
63 `key` matches, copy its `snippet` verbatim (it is calibrated and runnable).
642. Adapt only the element/content to the user's JSX; keep the transition values.
653. If the keyword is stateful (toggles, ripple), wire the `useState` shown in the
66 snippet. If it's a one-shot reveal, a `key` bump replays it.
674. Tell the user the keyword you applied so they can reuse it elsewhere for
68 consistency, and point them at `/motion` to preview/Copy others.
69
70If the user describes a move but no exact keyword fits, fall back to a seed +
71context. If they say a keyword that doesn't exist, suggest the closest real one
72from the table — never invent a keyword.
73
74## Context detection
75
76Infer one of the five contexts from the prompt:
77
78- "on hover" / "when hovered" → `hover`
79- "on press" / "on tap" / "on click" → `press`
80- "when it appears" / "on mount" / "entering" → `entrance`
81- "when it leaves" / "on close" / "exiting" → `exit` (requires `<AnimatePresence>`)
82- "when layout changes" / "FLIP" / "rearranging" → `layout`
83
84If ambiguous, default to `entrance`. If multiple contexts are reasonable (e.g., a button needs both `hover` and `press`), apply both.
85
86## Application steps
87
88Apply seed: **$0** · Context: **$1** · Target: **$ARGUMENTS**
89
901. **Read the target file** at the path given (or, if no path was given, ask the user which file). Locate the JSX element the user is talking about — usually a `<button>`, `<div>`, `<Card>`, or similar.
91
922. **Confirm the import paths**. The component file must be able to import:
93 - `motion` (and `AnimatePresence` for `exit`) from `"framer-motion"`
94 - the chosen seed from `"@engine/motion"` — in a project that doesn't use the `@engine/*` alias, use a relative path to `engine/motion`
95
963. **Replace the target tag with a `<motion.X>` and spread the seed's recipe**:
97
98 ```tsx
99 // hover example
100 <motion.button {...spring.hover}>Save</motion.button>
101
102 // press + hover combined
103 <motion.button {...spring.press} {...spring.hover}>Save</motion.button>
104
105 // entrance (mount)
106 <motion.div {...silk.entrance}>...</motion.div>
107
108 // exit (requires AnimatePresence wrapper somewhere up the tree)
109 <AnimatePresence>
110 {open && <motion.div {...silk.entrance} {...silk.exit} />}
111 </AnimatePresence>
112
113 // layout (FLIP)
114 <motion.div {...snap.layout}>...</motion.div>
115 ```
116
1174. **Do NOT inline the params**. The whole point of the seed is that the values come from one source. Never expand `{ type: "spring", stiffness: 300, damping: 18 }` into the JSX — always spread the recipe.
118
1195. **Respect `prefers-reduced-motion`** in long-running surfaces. For one-off interactions (hover/press), framer-motion already throttles. For mount/exit/layout sequences in a long-lived page, import `usePrefersReducedMotion` and `REDUCED_TRANSITION` from `@engine/motion` and override the transition when reduced motion is on.
120
1216. **Validate** by re-reading the file and confirming the JSX still parses (matching brackets, motion tag closed, AnimatePresence in place if `exit` was used).
122
1237. **Tell the user which seed and context you applied**, and offer one related context they might want next ("Want `press` too so it feels clickable?").
124
125## Defaults if the user is vague
126
127- No file given → ask "which file?"
128- No vibe word → ask "any vibe word, brand, or seed name?"
129- Vibe is "natural" or "feel like a real app" → default to **Silk** (the safest of the five)
130- Element is a CTA button → also apply `press`
131
132## Forbidden
133
134- Do not invent new seed names. There are exactly five.
135- Do not edit `engine/motion/seeds/*.ts` from this skill — those are calibrated by hand. Add a new seed only via a separate, explicit ask.
136- Do not introduce a third-party animation lib (gsap, anime.js). StyleSeed targets framer-motion exclusively.
137- Do not add scroll-linked, parallax, or infinite animations (DESIGN-LANGUAGE.md Rule 59).