GSAP starter
GSAP animations: tweens, staggers, and a controllable timeline.
Open in editor Free. No install, no sign-up.
- gsap
The code
Three files, exactly what you get in the editor.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GSAP starter</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>
</head>
<body>
<main class="stage">
<a href="https://gsap.com" target="_blank" class="brand">GSAP</a>
<div class="boxes">
<div class="box green"></div>
<div class="box pink"></div>
<div class="box purple"></div>
<div class="box blue"></div>
</div>
<div class="controls">
<button data-action="play">Play</button>
<button data-action="pause">Pause</button>
<button data-action="reverse">Reverse</button>
<button data-action="restart">Restart</button>
</div>
</main>
</body>
</html>
Questions
Can I use GSAP without a build step?
Yes. This starter loads GSAP straight from a CDN, so it runs in the browser with no npm install, bundler, or config.
How do I start a GSAP project online?
Click Open in editor. HTMLDrop copies this starter into a new drop with index.html, style.css, and script.js, and the preview updates as you edit.
Is it free?
Yes. Public drops, live collaboration, versions, and embeds are free, and you do not need an account to start.
Can I share or embed my GSAP demo?
Yes. Every drop gets a public link and an embed code, and you can invite others to edit it with you in real time.