Loading...
Loading...
ALWAYS use when writing code importing "motion-v". Consult for debugging, best practices, or modifying motion-v, motion v, motion-vue, motion vue.
npx skill4agent add harlan-zw/vue-ecosystem-skills motion-v-skilldmotion-vfocushoverpressinViewwhileFocuswhileHoverwhilePresswhileInView@hoverStart@pressStartv-motion<motion>.mjsMotionPluginv-motioncreatePresetDirective()AnimatePresencedata-apstaggerChildrenstaggerDirectionstagger()transitionstagger()useTransformReorderReorder.ItemuseScrollcontainertargetVueInstanceuseInViewrootMaybeRefAnimatePresencemotiondelayInMsuseTransformsequenceAnimatePresencemotionGlobalConfigFeatureBundlemotion.create()// Preferred
const MotionComponent = motion.create(Component)
// Avoid - re-created every render
<component :is="motion.create(Component)" />MotionValuestyle<script setup>
const x = useMotionValue(0)
</script>
<template>
<motion.div :style="{ x }" />
</template>mLazyMotion<template>
<LazyMotion :features="domAnimation">
<m.div :animate="{ opacity: 1 }" />
</LazyMotion>
</template>strictLazyMotionmotionreducedMotionMotionConfigv-motion<motion>AnimatePresencekeyLayoutGrouplayoutlayoutScrolllayoutRoot