kaltwrk/motion-core
소개
엄선된 Motion Core Svelte 컴포넌트입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMotion Core
Motion Core is not just a library; it's a curated collection of expressive, production-ready motion components designed for the experimental web. Born from a desire to make high-end motion design accessible, it wraps complex WebGL and timeline-based animations into simple, developer-friendly Svelte 5 components.
We don't package everything into a massive npm dependency. Instead, we follow a copy-paste architecture (inspired by shadcn/ui). We encourage you to poke around the code, break things, and contribute back.
Why Motion Core?
- Svelte 5 Native: Leverages Runes and Snippets for a truly reactive and modern DX.
- Performance First: Heavy lifting is done by GSAP and OGL, ensuring buttery smooth 60fps experiences.
- Aesthetic Focus: From magnetic buttons to 3D infinite galleries with cloth distortion, every component is crafted with "feel" in mind.
- The "Un-Library": Use our CLI to scaffold components directly into your codebase. No black boxes.
Usage (For Developers)
The primary way to use Motion Core is via our CLI tool, which handles dependencies and scaffolding.
1. Initialization
Run the init command in your SvelteKit project to set up the environment, install base dependencies (like clsx, tailwind-merge), and configure your motion-core.json.
npx @motion-core/cli init
2. Adding Components
Browse the documentation to find a component you like, then add it to your project:
npx @motion-core/cli add infinite-gallery
npx @motion-core/cli add magnetic
This will download the component source code and place it in your configured components directory (default: $lib/motion-core).
Monorepo Architecture
This repository is a monorepo managed by pnpm and Nx. It houses the entire ecosystem:
packages/motion-core: The source of truth for all components.apps/docs: The documentation site and development playground.motion-core-cli: The Rust-based CLI tool that powers the distribution.
Prerequisites for Contributors
- pnpm (v10.33.3) - Required for workspace management.
- Rust (Latest) - Required for CLI development.
- Node.js - Required for certain internal tooling.
Setting Up the Repo
Clone & Install
git clone https://github.com/motion-core/motion-core.git cd motion-core pnpm installBootstrap Workspace This script generates the internal registry manifest and performs initial checks on the CLI.
pnpm run workspace:bootstrapStart Development We use the documentation app as our dev environment to test components in real-time.
pnpm run devOpen http://localhost:5173 to view the playground.
CLI Development
If you are contributing to the CLI tool (written in Rust):
# Check for compilation errors
pnpm run cli:check
# Build the binary
pnpm run cli:build
# Run the test suite
pnpm run cli:test
Contributing
We welcome contributions! Whether it's a new motion component, a bug fix, or a documentation improvement.
- Fork the repo.
- Create your feature branch (
git checkout -b feature/amazing-motion). - Commit your changes.
- Lint & Format: Run
pnpm run lintandpnpm run format. - Push to the branch and open a PR.
License
Motion Core is open-source and free to use. Licensed under MIT.
관련 프로젝트 살펴보기
불러오는 중…