/qadri-motion:motion-uifrom qadri-motion
Install the right animation library into a project and build professional animated UI. Engines: Framer Motion (React only), GSAP with ScrollTrigger, anime.js v4 and Three.js / @react-three/fiber, plus Lenis smooth scroll and morphicons icon morphs. Detects the stack and package manager first (React, Next, Vite, Vue, Svelte, Astro, vanilla). Includes a timing, easing and choreography reference. Sources components from 21st.dev Magic MCP when connected, then shadcn registries (Cult UI, Watermelon UI, Skiper UI), else built-in recipes. Confirms each step by default; --auto runs end to end. Triggers: add animations, install framer motion / gsap, use anime.js, add three.js or a 3D scene, smooth scrolling, scroll-triggered animation, morph this icon, make this look professional, animate this, use 21st.dev, --auto.
Ships in qadri-motion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns a plain JS project into a polished, animated interface. It (1) verifies the project can host
the right animation engine, (2) installs it, and (3) builds professional components, sourcing from
21st.dev (Magic MCP when available, open shadcn registries or built-in patterns otherwise). Four
engines are supported so the skill fits any stack and any job — 2D UI motion, scroll storytelling, or
3D. The user stays in control by default; a single --auto flag hands the whole job to the AI.
| Engine | Package(s) | Stack | Best for |
|---|---|---|---|
| Framer Motion | motion | React only | Declarative component motion — layout, gestures, mount/unmount. |
| GSAP | gsap (+ @gsap/react) | Any JS project | Timelines, scroll-scrubbing/pinning (ScrollTrigger), SVG, "pro" sequencing. |
| anime.js | animejs (v4) | Any JS project | Lightweight property/SVG animation, stagger, small bundle. |
| Three.js | three (+ @react-three/fiber, @react-three/drei) | Any JS project | 3D / WebGL scenes, particles, shaders, product viewers. |
| Add-on | Package | What it is |
|---|---|---|
| Lenis | lenis | A smooth-scroll layer under whichever engine you picked. Install with one, never instead of. Marketing pages only; it takes over native scrolling. |
| morphicons | morphicons | Icon-to-icon SVG morphing (menu→close, play→pause) in ~7 KB. Too small a job to justify an engine. |
They compose (GSAP driving a Three.js camera; Framer Motion wrapping an r3f <Canvas>; Lenis under
all of them). Full recipes: references/motion-patterns.md (Framer Motion) and
references/animation-libraries.md (GSAP · anime.js · Three.js · Lenis · morphicons, plus the
composition recipes). How it should move — duration bands, easing by intent, stagger, reduced-motion
design — is references/motion-craft.md.
Use when the user wants to add motion/animation, "make it look professional," build a polished landing
page or component, add a scroll-triggered effect or a 3D scene, or explicitly names Framer Motion,
GSAP, anime.js, Three.js, or 21st.dev. Also triggers on --auto for end-to-end autonomous UI work.
Skip for: pure backend work and non-JS projects (no package.json).
| Mode | How to enter | Behavior |
|---|---|---|
| Confirm (default) | normal request | Propose each step — engine choice, install, design direction, every component — and wait for approval before acting. |
| Auto | user includes --auto (or says "full auto / you decide everything") | No stops: detect → pick engine → install → design → generate & apply → report. Still respects the compatibility gate and reduced-motion. |
Always state which mode you're in at the start. In Confirm mode, never install or write files without an explicit yes. Switching to Auto requires the user's flag/phrase — never assume it.
Run the detector and read its JSON verdict:
node "<skills>/motion-ui/scripts/detect-stack.mjs" "<projectDir>"
It reports: compatible, framework (next / remix / astro / vue / svelte / angular / vite / react /
vanilla), hasReact, hasTypeScript, hasTailwind, packageManager, warnings, and a libraries
map. Each entry (framer-motion, gsap, anime, three, lenis, morphicons) has usable,
installed, install (the exact command for this project's package manager, or null if already
installed), import, and a note.
compatible: false → stop: there's no package.json (not a JS project). Don't install.framer-motion.usable is false on non-React stacks — steer the user to GSAP or anime.js instead.installed: true → skip Step 3, note its import, go to Step 4.Pick from the user's ask; if unspecified, choose by the job (see the table above and the decision matrix
in references/animation-libraries.md):
hasReact).Check whether an engine is needed at all first. A one-off fade or hover is CSS. A single reveal is
IntersectionObserver plus a class. Installing a 40 KB timeline library for one transition is the
mistake this step exists to prevent; say so and move on.
Only usable: true engines are eligible. In Confirm mode, state your pick and why, and confirm before
installing. Multiple engines can be installed if the design needs both (e.g. Framer Motion for UI +
Three.js for a hero).
Some art directions cannot be reached in real time at all. If the ask is a cinematic pre-rendered
scroll journey, point at the external scroll-world skill and its cost gate rather than faking it in
WebGL — see references/animation-libraries.md.
Use that library's install string from the detector verbatim — it already includes the right
package manager and the React extras (@gsap/react, @react-three/fiber+drei, @types/*).
Notes baked into the detector: motion imports from motion/react (legacy framer-motion keeps its
path); animejs is v4 (named exports — import { animate } from 'animejs', not v3's default export).
Verify the install succeeded (dependency appears in package.json) before proceeding.
ToolSearch query magic 21st component ui. If relevant tools exist, use
them to fetch/generate components, then adapt the result to the project's stack, Tailwind tokens, and
the chosen engine's import path.references/21st-components.md for the install
forms and the stack/licence traps. Skiper UI is freemium; install only its free tier.references/animation-libraries.md (GSAP · anime.js · Three.js · Lenis · morphicons) or
references/21st-components.md + references/motion-patterns.md (Framer Motion).references/motion-craft.md before writing values. Pick one
personality column and hold it across every component in the job.prefers-reduced-motion (pause idle loops too — Three.js auto-spin, infinite tweens),
animate transform/opacity for 2D, match existing tokens, keep components accessible (3D/decorative SVG
needs a text/aria fallback). For Three.js, dispose GPU resources on teardown and cap pixel ratio.
With Lenis, exactly one thing may own the rAF loop (autoRaf or gsap.ticker.add, never both),
and every inner scroll container (modal, dropdown, chat panel) gets data-lenis-prevent.
Run the project's typecheck/lint if available; offer to start the dev server (or use the /run skill).references/motion-craft.md.--auto flag or an explicit "you decide everything."usable: true. Framer Motion never goes into
a non-React project; offer GSAP/anime.js/Three.js there instead.IntersectionObserver covers the ask, say so instead
of installing.tailwind.config.* and global CSS first, or pull from sibling skills.scripts/detect-stack.mjs — stack + per-engine usability + package-manager detector (run first).references/motion-craft.md — how it should move: duration bands, easing by intent, choreography,
personality, reduced-motion design, and the pre-ship checklist. Read before choosing values.references/motion-patterns.md — Framer Motion recipe cookbook + accessibility + perf rules.references/animation-libraries.md — GSAP · anime.js · Three.js · Lenis · morphicons cookbook,
which-engine matrix, composition recipes, and the pre-rendered-scroll escape hatch.references/21st-components.md — Magic MCP sourcing flow, open shadcn registries, and built-in
21st-style fallback components.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qadri-uk/claude-skills --plugin qadri-motion149 skills in this plugin
/60fps-animationThis skill should be used when the user asks to "fix janky CSS animation", "make animation 60fps", "stop layout thrashing", "animate width/height/top/left smoothly", "convert animation to transform", "animate box-shadow performantly", "animate height auto", "FLIP animation", or "why is my scroll/hover animation choppy"./accessible-animationThis skill should be used when the user asks to "respect prefers-reduced-motion", "honor reduced motion", "make my animations accessible", "fix vestibular / motion-sickness issues", "add a useReducedMotion hook", "gate GSAP / Framer Motion / Lenis for reduced motion", or "meet WCAG 2.3.3 / C39". Provides tiered (not all-or-nothing) reduced-motion patterns in CSS and JS./Other plugins' skills for the same job