Skip to content
프로젝트

소개

Write Framer Motion animations as Tailwind-style utility classes – Motionwind transforms animate-* classes into motion props at build time with zero imports and zero boilerplate.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

Sponsored by Mintlify OSS Program

// Before
<motion.button whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.9 }}>Click</motion.button>

// After — no imports needed
<button className="animate-hover:scale-110 animate-tap:scale-90">Click</button>

Quick start

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 <preset> as the project evolves.

// 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

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!

Sponsored by Mintlify OSS Program

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

License

MIT

관련 프로젝트 살펴보기

불러오는 중…