Gravity Launch Page Template is an interactive and visually appealing landing page built with React + Vite, featuring gravity and physics-based animations using Matter.js and Framer Motion. Designed to create a dynamic first impression, this project is great for product launches, portfolio showcases, or fun experiments with physics simulations!
- 🌌 Physics-based animations with Matter.js
- 🎭 Smooth UI animations using Framer Motion
- 🎨 Tailwind CSS for styling
- 🎯 Optimized performance with Vite
- 🔍 SEO & Analytics with Google Tag Manager and Clarity
- 🎉 Confetti effect for celebrations
Clone the repository and install dependencies:
git clone https://github.com/meticha/gravity-launch-page-template.git
cd gravity-launch-page-template
npm installStart the development server:
npm run devBuild for production:
npm run buildPreview the production build:
npm run previewMake the Gravity Launch Page your own by modifying these key elements:
-
Update text content and constants
- Edit
src/constants.jsto change flying objects.
- Edit
-
Modify background text
- Customize
src/components/BackgroundText.jsxto update the background text appearing on the page.
- Customize
-
Customize floating action buttons
- Edit
src/components/FloatingLabel.jsxto modify the details of the two floating action buttons.
- Edit
-
Adjust physics settings
- Modify
src/components/Gravity.jsto tweak Matter.js physics effects.
- Modify
-
Change animations
- Use Framer Motion in
src/components/to customize animation effects.
- Use Framer Motion in
-
Update styles
- Modify
src/index.cssusing Tailwind CSS to personalize the design.
- Modify
-
Integrate tracking or analytics
- Add tracking codes in
vite.config.jsusingvite-plugin-radar.
- Add tracking codes in
We welcome contributions! Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name - Make your changes and commit:
git commit -m 'Add feature' - Push to the branch:
git push origin feature-name - Open a Pull Request
This project is licensed under the MIT License.
If you like this project, consider giving it a star ⭐ on GitHub! Have any suggestions? Open an issue or connect with me on LinkedIn.
