GSAP animation basics
Ask Claude for a web animation and GSAP's own skill writes tweens, easing, stagger and reduced-motion set-ups.
See it work
You give it
Use gsap-core. Homepage for a coffee roaster in Denver, vanilla JS, GSAP 3.12. On load: the headline rises in, then the 4 bag cards ($18 to $24) fade up one by one, then the "Shop beans" button pops. Problems: the cards flash before animating, the button never appears, and after the holiday banner fades out, nobody can click the links under it. My code:
gsap.from('h1',{top:40,opacity:0,duration:1});
gsap.from('.card',{opacity:0,y:30,delay:1});
gsap.from('.shop-btn',{opacity:0,delay:2});
gsap.from('.shop-btn',{opacity:0,scale:0.5,delay:2});
gsap.to('.banner',{opacity:0,delay:6});
You get back
Each of your three problems comes from a different line, and there are two more issues you haven't noticed yet.
What's going wrong
1. The button never appears: two from() tweens on the same property. A from() tween applies its start values the moment it's created (immediateRender is on by default). So your first button tween sets opacity to 0 straight away. Then the second from() reads the button's "current" opacity, which is now 0, and uses it as the end value. It animates from 0 to 0. Fix: one tween that does both, with explicit start and end values.
2. The cards flash: they're painted before your script runs. The browser draws the cards at full opacity, then your script loads, then from() hides them and fades them back in. immediateRender can only hide them once the tween exists. Fix: hide them in CSS from the first paint and let GSAP reveal them.
3. The banner blocks clicks: opacity: 0 doesn't remove it. It's still sitting on top of the links, just invisible. Fix: autoAlpha instead of opacity. At 0, GSAP also sets visibility: hidden, so clicks go through to what's underneath.
4. The cards don't come in one by one. There's no stagger, so all four fade up together.
5. The headline animates top. That only works if the h1 is positioned, and it's a layout property: the browser recalculates the page on every frame. y gives the same rise with a transform.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Writes tweens with to, from and fromTo.
- Picks easing and stagger for groups.
- Handles screen sizes and reduced motion.
What's inside
gsap-core/CREDITS.mdgsap-core/LICENSEgsap-core/SKILL.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use gsap-core".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.