百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

motionwind

> 编程语言
开源

将 Framer Motion 动画写成 Tailwind 风格的实用类 – Motionwind 在构建时将 animate-* 类转换为动画元素,无需导入任何内容

195 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

将 Framer Motion 动画写成 Tailwind 风格的实用类 – Motionwind 在构建时将 animate-* 类转换为动画元素,无需导入任何内容

motionwind

A shared utility language for Motion animation. Motionwind turns classes such as animate-hover:scale-110 into Motion output at build time across React, Vue, and JavaScript, with an explicit runtime fallback for dynamic classes and React Native.

javascript
// Before
Click

// After — no imports needed
Click

Quick start

bash
npx create-motionwind@2 init

The CLI detects Next.js, React/Vite, Vue/Nuxt, vanilla JavaScript, or Expo and installs the matching published adapter. Preview changes with npx create-motionwind@2 init --dry-run, then use doctor, migrate, or add as the project evolves.

javascript
// next.config.js
import withMotionwind from "motionwind-react/next";
export default withMotionwind({});

For dynamic class names, use mw.*. Design-system components can be wrapped with mw.create(Component). The existing animate-* language and direct Motion APIs remain available together—Motionwind targets the common UI-animation path, not complex imperative timelines.

Packages

Package Purpose Tier
motionwind-core Parser, typed IR, configuration, syntax registry, plugins, and adapter contracts Stable
motionwind-react React runtime plus Babel, Vite, and Next.js integrations Stable
motionwind-vue Vue components and Vite integration Stable
motionwind-vanilla JavaScript runtime Stable
motionwind-react-native Expo/React Native runtime Beta
motionwind-unplugin Vite, Rollup, webpack, Rspack, and esbuild integration layer Stable
create-motionwind Init, doctor, migrate, and preset CLI Stable
eslint-plugin-motionwind / prettier-plugin-motionwind Registry-driven diagnostics and formatting Stable
motionwind-mcp Registry-driven validation, explanation, optimization, and generation tools Stable

Installable examples live in starters/. Reviewed, portable recipes live in registry/recipes and power animate-preset-*, Motionwind Studio, and the CLI.

Docs

  • Guides & reference — motionwind.xyz, or design an interaction in Motionwind Studio
  • Syntax & features — packages/documentation/features.md
  • Architecture & internals — packages/documentation/architecture.md
  • Roadmap and support — ROADMAP.md and SUPPORT.md
  • Contributing — CONTRIBUTING.md, CODE_OF_CONDUCT.md, and starter tasks tagged good first issue

All public packages are released together with Changesets, generated changelogs, npm provenance, and canary tags. CI validates the common syntax corpus, package artifacts, registry, supported Node versions, and adapter test suites.

Sponsors

Motionwind is free and open source thanks to our sponsors.

Mintlify OSS Program

Motionwind is proudly sponsored by the Mintlify OSS Program, supporting open-source developer tools. Thank you for backing motionwind!

Want to sponsor motionwind? Open an issue and get listed here — every sponsor keeps this project free.

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言