Installations
npm install @vueuse/motion
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
18.20.4
NPM Version
10.7.0
Score
73.8
Supply Chain
90.8
Quality
85.7
Maintenance
100
Vulnerability
99.3
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (90.03%)
Vue (7.33%)
Shell (0.85%)
CSS (0.77%)
JavaScript (0.55%)
HTML (0.48%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
2,192,111
Last Day
5,962
Last Week
33,034
Last Month
138,513
Last Year
1,206,114
GitHub Statistics
MIT License
2,495 Stars
943 Commits
90 Forks
15 Watchers
8 Branches
53 Contributors
Updated on Feb 14, 2025
Bundle Size
198.32 kB
Minified
65.91 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.2.6
Package Id
@vueuse/motion@2.2.6
Unpacked Size
1.32 MB
Size
171.08 kB
File Count
19
NPM Version
10.7.0
Node Version
18.20.4
Published on
Oct 11, 2024
Total Downloads
Cumulative downloads
Total Downloads
2,192,111
Last Day
8.1%
5,962
Compared to previous day
Last Week
3.7%
33,034
Compared to previous week
Last Month
25.4%
138,513
Compared to previous month
Last Year
113.8%
1,206,114
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
23
Optional Dependencies
1
🤹 @vueuse/motion
Vue Composables putting your components in motion
- 🏎 Smooth animations based on Popmotion
- 🎮 Declarative API inspired by Framer Motion
- 🚀 Plug & play with 20+ presets
- 🌐 SSR Ready
- 🚚 First-class support for Nuxt 3
- ✨ Written in TypeScript
- 🏋️♀️ Lightweight with <20kb bundle size
Quick Start
Let's get started by installing the package and adding the plugin.
From your terminal:
1npm install @vueuse/motion
In your Vue app entry file:
1import { createApp } from 'vue' 2import { MotionPlugin } from '@vueuse/motion' 3import App from './App.vue' 4 5const app = createApp(App) 6 7app.use(MotionPlugin) 8 9app.mount('#app')
You can now animate any of your component, HTML or SVG elements using v-motion
.
1<template> 2 <div 3 v-motion 4 :initial="{ 5 opacity: 0, 6 y: 100, 7 }" 8 :enter="{ 9 opacity: 1, 10 y: 0, 11 }" 12 /> 13</template>
To see more about how to use directives, check out Directive Usage.
To see more about what properties you can animate, check out Motion Properties.
To see more about how to create your own animation styles, check out Transition Properties.
To see more about what are variants and how you can use them, check out Variants.
To see more about how to control your declared variants, check out Motion Instance.
Nightly release channel
You can try out the latest changes before a stable release by installing the nightly release channel.
1npm install @vueuse/motion@npm:vueuse-motion-nightly
Credits
This package is heavily inspired by Framer Motion by @mattgperry.
If you are interested in using WAAPI, check out Motion.dev!
I would also like to thank antfu, patak-dev and kazupon for their kind help!
If you like this package, consider following me on GitHub and on Twitter.
👋

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 15/30 approved changesets -- score normalized to 5
Reason
1 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nightly-release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/nightly-release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nightly-release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/nightly-release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/release.yaml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/release.yaml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/release.yaml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/release.yaml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/targets.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/targets.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/targets.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/targets.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/targets.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/vueuse/motion/targets.yml/main?enable=pin
- Info: 2 out of 14 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 5 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/nightly-release.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yaml:1
- Warn: no topLevel permission defined: .github/workflows/targets.yml:1
- Info: no jobLevel write permissions found
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 17 are checked with a SAST tool
Reason
15 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-96g7-g7g9-jxw8
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
- Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6
- Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
3.1
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @vueuse/motion
@vueuse/gesture
🕹 Vue Composables making your app interactive
vueuse-motion-nightly
🤹 Vue Composables putting your components in motion
hero-motion
A shared layout animations for vue like framer motion.
@douxcode/vue-spring-bottom-sheet
Modern and Performant Bottom Sheet for Vue.js