motionwind-vue
motionwind-vue v2
Use the shared Motionwind utility language in Vue 3 and Nuxt through Motion for Vue.
npm install motionwind-vue@2 motion-v @vueuse/core motionwind-core@2
For Vue/Vite, configure the static template transform and install the runtime plugin with the same project config:
import vue from "@vitejs/plugin-vue";
import { createMotionwindTransform } from "motionwind-vue/vite";
vue({
template: {
compilerOptions: {
nodeTransforms: [createMotionwindTransform(config)],
},
},
});
import { MotionwindPlugin } from "motionwind-vue";
createApp(App).use(MotionwindPlugin, config).mount("#app");
Static native elements can use plain classes. Dynamic classes and the tested Nuxt integration use the runtime component:
<Motionwind
as="button"
class="animate-hover:scale-110 animate-tap:scale-90 animate-spring"
>
Save
</Motionwind>
Exports include Motionwind, mw, useMotionwind, MotionwindPlugin, adapter
capabilities, and the shared parser/config helpers. Continuous
animate-scroll:* is not implemented in the Vue adapter and reports a warning;
use Motion for Vue's scroll composables directly.
Compatibility: https://motionwind.xyz/docs/compatibility
MIT
Related Packages
Animated Hugeicons for Vue 3. Copy-paste source, or import the components.
Vue motion utilities compatible with Svelte transition, animate, easing, and mot...
70+ free and open-source animated components for Vue 3, built with Tailwind CSS...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0 | ^3.3.0 | MIT |