Thank you for your interest in contributing to Svelte 5 Animations! We welcome contributions from the community.
- Check if the issue already exists in the GitHub Issues
- Provide a clear description of the problem
- Include reproduction steps if applicable
We have a detailed guide for creating new components. Please follow these steps:
-
Read the Component Creation Guide
- See CREATE_COMPONENT_GUIDE.md for the complete step-by-step process
-
Fork and Clone
git clone https://github.com/YOUR_USERNAME/animations.git cd animations pnpm install -
Create Your Component
- Follow the structure outlined in CREATE_COMPONENT_GUIDE.md
- Create the component in
src/lib/components/magic/ - Add documentation and examples in
src/routes/magic/docs/components/ - Update
registry.jsonwith your component
-
Test Your Component
pnpm registry:build pnpm dev
- Verify your component works in the dev environment
- Test the installation process using the CLI
-
Code Quality
- Use TypeScript for type safety
- Follow the existing code style
-
Submit a Pull Request
- Create a new branch:
git checkout -b feat/your-component-name - Commit your changes with clear messages
- Push to your fork and submit a PR
- Create a new branch:
- Use
motion-svfor animations when possible - Allow users to override animation timings and easing
- Test on different screen sizes
- Consider performance on lower-end devices
- Clear description of what the component does
- Complete list of props with types and defaults
- At least one working example
- Installation instructions
- Usage examples with code snippets
By contributing, you agree that your contributions will be licensed under the MIT License.
Thank you for making Svelte Animations better! 🎉