← 返回
开发者工具 中文

Motion.dev Complete Documentation

Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)
Motion.dev 完整文档 - 适用于 React、JavaScript 和 Vue 的现代动画库(前身为 Framer Motion)
leonaaardob leonaaardob 来源
开发者工具 clawhub v0.1.0 1 版本 99884.7 Key: 无需
★ 4
Stars
📥 2,519
下载
💾 46
安装
1
版本
#animation#documentation#framer-motion#gestures#javascript#keyframes#latest#motion#react#scroll#spring#transitions#vue

概述

Motion.dev Documentation

Motion is a modern animation library for React, JavaScript, and Vue. It's the evolution of Framer Motion, offering:

  • Tiny size: Just 2.3kb for the mini HTML/SVG version
  • High performance: Hardware-accelerated animations
  • Flexible: Animate HTML, SVG, WebGL, and JavaScript objects
  • Easy to use: Intuitive API with smart defaults
  • Spring physics: Natural, kinetic animations
  • Scroll animations: Link values to scroll position
  • Gestures: Drag, hover, tap, and more

Quick Reference

Installation

npm install motion

Basic Animation

import { animate } from "motion"

// Animate elements
animate(".box", { rotate: 360, scale: 1.2 })

// Spring animation
animate(element, { x: 100 }, { type: "spring", stiffness: 300 })

// Stagger multiple elements
animate("li", { opacity: 1 }, { delay: stagger(0.1) })

React

import { motion } from "motion/react"

<motion.div
  animate={{ rotate: 360 }}
  transition={{ duration: 2 }}
/>

Scroll Animations

import { scroll } from "motion"

scroll(animate(".box", { scale: [1, 2, 1] }))

Documentation Structure

  • quick-start.md - Installation and first animation
  • More docs to be added...

When to Use This Skill

Use this skill when:

  • Implementing animations in web applications
  • Optimizing animation performance
  • Creating scroll-based effects
  • Building interactive UI with gestures
  • Migrating from Framer Motion to Motion

External Resources

  • Official site: https://motion.dev
  • GitHub: https://github.com/motiondivision/motion
  • Examples: https://motion.dev/examples

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 18:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,728
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 194 📥 67,409
it-ops-security

Vercel

leonaaardob
{ "translation": "利用完整 CLI 参考部署应用并管理项目。命令涵盖部署、项目、域名、环境变量及实时文档访问。" }
★ 0 📥 1,847