Animate Vue component using @vueuse/motion
red packet animation
Demo
✨
source code atred-packet-demo.vue
Install the package
npm install @vueuse/motion
Import and use as Global plugin
import { MotionPlugin } from '@vueuse/motion'
const app = createApp(App)
app.use(MotionPlugin)
app.mount('#app')
Check out their docs at@vueuse/motionfor more info. Another great library ismotion-one. If you like Tailwind for animations, checkoutAnimXYZ
Happy lunar new year!🎉
Made with❤by leovoon