
motion-v-skilld
ALWAYS load when writing or debugging code that imports "motion-v" (Motion for Vue, motion-vue). Covers the motion component, AnimatePresence, variants, gestures, layout, scroll, motion values, the v-motion directive, and the Nuxt module for version 2.4.4. Provides API facts, recipes, best practices, and migration notes.
- Installs
- 143
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/skilld-dev/vue-ecosystem-skills --skill motion-v-skilld- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads motion-v-skilld automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
motion-v (Motion for Vue) 2.4.4
Motion for Vue is the Vue port of Motion (formerly Framer Motion). It animates DOM and SVG through props, motion values, and a hybrid engine.
Facts, all verified from the prepared source:
- Package:
motion-v2.4.4, MIT, ESM only (package.json:4, package.json:20-33). - Peer deps:
vue >= 3.0.0,@vueuse/core >= 10.0.0(package.json:53-56). - Engine deps:
framer-motion,motion-dom,motion-utils, all^13.3.0(package.json:57-62). - Entry points:
motion-v,motion-v/nuxt,motion-v/resolver(package.json:20-33). - The root entry re-exports all of
framer-motion/dom(dist/es/index.d.ts:1). Soanimate,stagger,arc, easing functions, and more come from the Motion engine. - Repo and docs: https://github.com/motiondivision/motion-vue, https://motion.dev/docs/vue
Quick start
npm install motion-v
<script setup>
import { motion } from 'motion-v'
</script>
<template>
<motion.div :initial="{ opacity: 0 }" :animate="{ opacity: 1, x: 100 }" />
</template>
motion is a namespace of typed components for every HTML and SVG tag
(dist/es/components/motion/index.d.ts:3-182). motion.div, motion.svg, motion.path and so on.
Core model
- Set
initial,animate,exit,whileHover,whilePress,whileInView,whileFocus,whileDragto values or variant labels. - When
animatevalues change, the element animates to them. transitionconfigures timing, spring, delay, stagger.variantspluscustomsupport dynamic, per element targets.- Animatable values include independent transforms (
x,y,scale,rotate,skewX), colors, and CSS variables (dist/es/types/state.d.ts:45-47). - In templates, bind motion props with
:prefix. They are props, not attributes.
Full prop and hook listing: references/api-surface.md
Hard rules
These rules prevent the most common bugs. Each cites its source.
-
Use
mplusLazyMotioninstead ofmotionwhen bundle size matters.motionships all features, about 34 kb.mstarts near 6 kb. LoaddomAnimationfor variants, gestures, exit. LoaddomMaxfor drag and layout. Setstrictto catch straymotionusage in dev. https://motion.dev/docs/vue-lazymotion, dist/es/components/lazy-motion/index.d.ts:4-13 -
Never put
v-ifonAnimatePresenceitself. If it unmounts, it cannot intercept child exits. Put the condition on the direct child instead:<AnimatePresence> <motion.div v-if="isVisible" :exit="{ opacity: 0 }" /> </AnimatePresence> -
For layout animations, apply changing CSS to
:style, never to:animate. Thelayoutprop animates the measured change. Values in:animatefight the FLIP measurement. https://motion.dev/docs/vue-layout-animations -
Set
borderRadiusandboxShadowas inline styles onlayoutelements. Motion corrects scale distortion for these two only when they are motion values in:style. https://motion.dev/docs/vue-layout-animations#scale-correction -
Add
layoutScrollon scrollable ancestors andlayoutRooton fixed position ancestors. Without them, layout measurement is wrong when scroll or viewport offset is non zero. dist/es/components/motion/props.d.ts:71-78 -
Set
reducedMotion="user"on a rootMotionConfig. The default is"never", so animations ignore the OS accessibility setting unless you opt in. dist/es/components/motion-config/types.d.ts:5-20 -
Use dynamic variants with
customfor stagger, not computed delays in reactive state. Pass:custom="index"and resolvedelayinside the variant function. https://motion.dev/docs/vue-animation -
Render live motion values with
<RowValue :value="mv" />in demos and readouts. It writesinnerHTMLdirectly and keeps fast values off the Vue render path. dist/es/components/RowValue.d.ts:1-15 -
Use
v-motionfor plain elements when a wrapper component does not fit. Register it globally withapp.use(MotionPlugin), or create presets withcreatePresetDirective. The directive supports SSR throughgetSSRPropsand defaults todomMaxfeatures. dist/es/directive/index.mjs:153-172 -
Gesture shorthand props
focus,hover,press,inViewwere removed in v2.0.0. UsewhileFocus,whileHover,whilePress,whileInViewfor animation, and event props likeonHoverStartfor logic. See references/migration.md
Common tasks
Enter and exit, stagger, drag, scroll linked, imperative useAnimate, shared layout, Reorder lists, directive usage, LazyMotion, and Nuxt setup, each with a runnable snippet: references/recipes.md
Changes since the 2.2.1 baseline
- 2.3.0:
arc()motion along an arc, usable astransition: { path: arc(...) }.useAnimatenow respectsMotionConfig skipAnimations. - 2.4.0: multidimensional Reorder,
axis="xy"onReorder.Group. - 2.4.2: exit and enter animations restored for
KeepAlivecached components. - 2.4.4: Nuxt module no longer transpires
motion-vin builds.
Details and links: references/migration.md
Version specific notes
- SVG positions use
attrX,attrY,attrScaleinstead ofx,y,scale(dist/es/types/state.d.ts:15-20). useSpringaccepts a value or aMotionValuesource and returns the matching type (dist/es/value/use-spring.d.ts:6-7).useTransformmaps ranges and also returns a named map of outputs in one call (dist/es/value/use-transform.d.ts:54-97).AnimatePresencesupportsmodesync,wait,popLayout, plusanchorXfor popLayout exit direction (dist/es/components/animate-presence/types.d.ts:1-8).- Directive and components share one resolver, so
v-motioninherits variant, presence, and config context (dist/es/utils/resolve-motion-props.d.ts:11-15).
FAQ
What does the motion-v-skilld skill do?
ALWAYS load when writing or debugging code that imports "motion-v" (Motion for Vue, motion-vue). Covers the motion component, AnimatePresence, variants, gestures, layout, scroll, motion values, the v-motion directive, and the Nuxt module for version 2.4.4. Provides API facts, recipes, best practices, and migration notes.
How do I install motion-v-skilld?
Run npx skills add https://github.com/skilld-dev/vue-ecosystem-skills --skill motion-v-skilld in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/motion-v-skilld/ (personal) or .claude/skills/motion-v-skilld/ (project).
Which AI agents can use motion-v-skilld?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is motion-v-skilld safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains motion-v-skilld?
It is published by skilld-dev in skilld-dev/vue-ecosystem-skills. It has 143 recorded installs.
More from skilld-dev/vue-ecosystem-skills
quasar-skilld
skilld-dev/vue-ecosystem-skills
Build, configure, and debug apps with the Quasar framework (quasar npm package, v2.33.1). Use when writing, reviewing, or debugging code that imports "quasar" or "quasar/wrappers", configuring Quasar with Vite, Vitest, Storybook, UMD, or Quasar CLI, styling with Quasar Sass variables, or upgrading between Quasar v2 releases.
vue-i18n-skilld
skilld-dev/vue-ecosystem-skills
Open the skill to read its SKILL.md instructions.
vue-skilld
skilld-dev/vue-ecosystem-skills
Open the skill to read its SKILL.md instructions.
vuetify-skilld
skilld-dev/vue-ecosystem-skills
Vue Material Component Framework. Use when writing, debugging, or configuring code that imports vuetify v4.x. Covers createVuetify setup, components and labs, composables, theming, icons, dates and locale, styles and SASS variables, treeshaking, and v3 to v4 migration.
pinia-skilld
skilld-dev/vue-ecosystem-skills
Open the skill to read its SKILL.md instructions.
vue-router-skilld
skilld-dev/vue-ecosystem-skills
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.