Agent skill Web motion
GSAP Core
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add greensock/gsap-skills --skill gsap-core --agent claude-code --yesCheck this file in your project.claude/skills/gsap-core/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add greensock/gsap-skills --skill gsap-coreSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An existing page, a feature card you can identify, and GSAP available to the page.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- GreenSock
- Installed content
- SKILL.md with workflow guidance
- Result
- A card tween with explicit endpoints and lifecycle cleanup.
- Skill name
gsap-core- Repository
greensock/gsap-skills
Common pitfall
Avoid this prompt
Apply a from-tween to every card as soon as the script loads.
A from-tween can apply its starting values immediately. A broad selector can also pick up cards outside the feature.
Use these steps
- Choose one decorative element and record the current layout and motion trigger.
- Apply gsap.fromTo() to the scoped decoration and preserve the static reading and interaction path.
- Check the endpoints, clean up, and repeat the interaction on the actual page.
Hands-on walkthrough
Give one existing feature card an entrance with explicit start and end values, then verify the tween in isolation and on the page.
Give one existing feature card an entrance with explicit start and end values, then verify the tween in isolation and on the page.
Record the static state
Choose one decorative element and record the current layout and motion trigger.
Prompt · Step 1Use gsap-core to inspect [page or component]. Identify the feature card, its decorative element, the trigger, and the affected property. Record the resting value and confirm its link or button is visible and usable before the enhancement starts.Set the tween endpoints
Apply gsap.fromTo() to the scoped decoration and preserve the static reading and interaction path.
Prompt · Step 2Use gsap.fromTo() to animate the identified decoration from y: 12 to y: 0 with a short duration. Keep the card HTML, focus order, and links intact. Start from the agreed trigger, skip decorative motion when reduced motion is requested, and revert the tween on teardown. If a later from/fromTo tween on the same property writes its start too early, set immediateRender: false on that later tween.Seek and revert the tween
Check the endpoints, clean up, and repeat the interaction on the actual page.
- Start and end transform values match the selected endpoints.
- Revert restores the original state and reduced-motion mode leaves the card usable.
Prompt · Step 3Verify the configured start and end with tween.progress(0) and tween.progress(1). Use ease: "none" if asserting a numerical midpoint in an isolated test. Call revert() and compare the original styles, then check the actual card at its trigger and with reduced motion. Report observed values and any check left unrun.
API lookup
Use these calls when adapting the walkthrough to your component.
Set both endpointsGSAP
- Command or reference
gsap.fromTo()- Examples
- Use an explicit y start and end when the current transform is unreliable.
Defer initial writesGSAP
- Command or reference
immediateRender: false- Examples
- Apply to a later tween when it shares a property with an earlier one.
FAQ
When is the midpoint exactly halfway?
A linear ease such as ease: "none" gives a halfway value at progress(0.5) for a simple numeric tween. An eased tween can land at a different value at the same progress.
What does installing the skill add?
The project skill folder contains the publisher’s SKILL.md. Your application still needs its own GSAP dependency and a page to run the animation.