Welcome to GSAP-TMHS, a project that showcases the powerful capabilities of GSAP (GreenSock Animation Platform) through engaging demos and detailed explanations. This project is designed to help developers learn how to create stunning, interactive animations using GSAP, with a focus on practical, real-world applications.
GSAP-TMHS is a fully interactive site showcasing the various features and functionalities of GSAP, including basic animations, ScrollTrigger, draggable elements, inertia, and smooth scrolling. The project is structured to be easy to navigate and modify, making it a valuable resource for developers of all skill levels.
- Basic GSAP Animations: Learn the fundamentals of GSAP animations.
- ScrollTrigger: Create animations that respond to scroll events.
- Draggable and Inertia: Implement natural, physics-based motion in your web projects.
- Smooth Scrolling: Enhance user experience with smooth scroll effects.
- Responsive Design: Fully responsive, optimized for desktop and mobile devices.
To get a local copy of this project up and running, follow these steps:
-
Clone the Repository:
git clone https://github.com/TMHSDigital/GSAP-TMHS.git
-
Navigate to the Project Directory:
cd GSAP-TMHS -
Open
index.htmlin Your Browser:Simply open the
index.htmlfile in your preferred web browser to explore the demos and features.
GSAP-TMHS/
│
├── animations.css # Styles for animations
├── animations.js # JavaScript for GSAP animations
├── cdn-libs.js # CDN links for GSAP and other libraries
├── global.css # Global styling for the site
├── index.html # Main entry point of the site
├── LICENSE # License file
└── README.md # Project documentation
The project includes several examples of GSAP animations:
- Basic Animation: Animates a box moving and rotating.
- ScrollTrigger: Animates elements based on scroll position.
- Inertia: Adds physics-based motion to draggable elements.
- Smooth Scroll: Adds smooth scrolling behavior to navigation links.
- Animations: Modify the
animations.jsfile to customize or add new animations. - Styles: Update
animations.cssandglobal.cssto change the appearance of elements. - Libraries: Add or update libraries in the
cdn-libs.jsfile as needed.
Contributions are welcome! If you have suggestions, ideas, or want to contribute code, feel free to submit a pull request. Please ensure your changes are consistent with the project's coding standards.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
Want someone to build you an AWESOME site? Contact us today!