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.XJSX 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.tsxdirectly
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.
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(andAnimatePresenceforexit) from"framer-motion"- the chosen seed from
"@engine/motion"— in a project that doesn't use the@engine/*alias, use a relative path toengine/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-motionin long-running surfaces. For one-off interactions (hover/press), framer-motion already throttles. For mount/exit/layout sequences in a long-lived page, importusePrefersReducedMotionandREDUCED_TRANSITIONfrom@engine/motionand 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
exitwas used). -
Tell the user which seed and context you applied, and offer one related context they might want next ("Want
presstoo 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/*.tsfrom 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).