You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

motion

Package Overview
Dependencies
Maintainers
2
Versions
348
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motion

An animation library for JavaScript and React.

12.23.6
latest
Source
npmnpm
Version published
Weekly downloads
1.2M
-14.34%
Maintainers
2
Weekly downloads
 
Created
Source

Motion logo

Motion

An open source animation library for JavaScript, React and Vue


Motion is an animation library and suite of developer tools for making beautiful animations.

It's the only library with first-class APIs for JS, React and Vue. It's also the only library with a hybrid engine, combining the power of JS animations with the performance of native browser APIs.

🍦 Flavours

JavaScript

import { animate } from "motion"

animate("#box", { x: 100 })

Get started with JavaScript.

React

npm install motion
import { motion } from "motion/react"

function Component() {
    return <motion.div animate={{ x: 100 }} />
}

Get started with Motion for React.

Vue

<script>
    import { motion } from "motion-v"
</script>

<template> <motion.div :animate={{ x: 100 }} /> </template>

Get started with Motion for Vue.

🎨 Studio

Video of bezier curve editing

Motion Studio is a versatile suite of developer tools allowing you to:

  • Visually edit CSS and Motion easing curves in VS Code
  • Generate CSS springs with LLMs
  • Load Motion docs into your LLM

Get started with Motion Studio.

🎓 Examples

Motion Examples offers 100s of free and Motion+ examples for beginners and advanced users alike. Easy copy/paste code to kickstart your next project.

⚡️ Motion+

Motion+ is a one-time fee, lifetime membership that unlocks over 100 premium examples, early access, powerful Studio tools, a private Discord, and exclusive APIs like:

  • Cursor
  • Ticker
  • AnimateNumber
  • splitText

Get Motion+

👩🏻‍⚖️ License

  • Motion is MIT licensed.

💎 Contribute

✨ Sponsors

Motion is sustainable thanks to the kind support of its sponsors.

Partners

Framer

Motion powers Framer animations, the web builder for creative pros. Design and ship your dream site. Zero code, maximum speed.

Framer

Platinum

Tailwind Emil Kowalski Linear

Gold

Vercel Liveblocks Luma

Silver

Frontend.fyi Firecrawl Puzzmo

Personal

Keywords

javascript animation

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts