Welcome to the GSAP Basics Tutorial repository! This repository contains a series of lessons designed to help you get started with the GreenSock Animation Platform (GSAP). Each lesson includes an active web page where you can see the animations in action.
GSAP (GreenSock Animation Platform) is a powerful JavaScript library for creating high-performance animations that work in all major browsers. It is easy to use, highly flexible, and has a robust set of features that allow you to animate anything you can imagine.
To get started with GSAP, you will need basic HTML, CSS, and JavaScript files, along with the CDNs for Tailwind CSS and GSAP. Follow the steps below to set up your environment.
Create the following files in your project directory:
index.html
styles.css
script.js
Add the following CDNs to your index.html
file to include Tailwind CSS and GSAP.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GSAP Basics Tutorial</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- GSAP CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<script src="script.js"></script>
</body>
</html>
Feel free to explore each lesson and modify the code to better understand how GSAP works. Happy animating!