
Gsap
- 31 installs
- Updated June 23, 2026
- enderpuentes/ai-agent-skills
Helps with ai & agent building tasks.
About
gsap is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- gsap
- AI & Agent Building
- AI-coding skill
Gsap by the numbers
- 31 all-time installs (skills.sh)
- Ranked #9,202 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 24, 2026 (Skillselion catalog sync)
npx skills add https://github.com/enderpuentes/ai-agent-skills --skill gsapAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 31 |
|---|---|
| Last updated | June 23, 2026 |
| Repository | enderpuentes/ai-agent-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
GSAP (GreenSock Animation Platform)
Overview
GSAP is a robust, blazingly fast JavaScript animation library that lets you animate anything (CSS properties, SVG, canvas, React components). It's built for modern web performance and handles cross-browser inconsistencies out of the box.
Core components:
- gsap.to(), gsap.from(), gsap.fromTo(): Basic tweens.
- Timeline:
gsap.timeline()to sequence multiple tweens. - Plugins: Add extra capabilities (e.g.,
ScrollTriggerfor scroll animations,Flipfor FLIP animations).
---
Installation
Reference: GSAP docs, React guide
| Use case | Packages |
|---|---|
| Core | gsap |
| React / Next.js (recommended) | gsap, @gsap/react |
Add via your package manager (see npm). GSAP provides a dedicated React hook (useGSAP) for cleanup and context management.
---
Core Usage
Basic Tweens
import gsap from "gsap";
// Animate to a state
gsap.to(".box", { x: 100, duration: 1, ease: "power2.inOut" });
// Animate from a state
gsap.from(".box", { opacity: 0, y: 50, duration: 1, stagger: 0.1 });Timelines
Timelines are perfect for choreographing sequences.
const tl = gsap.timeline({ repeat: -1, yoyo: true });
tl.to(".box1", { x: 100, duration: 1 })
.to(".box2", { y: 50, duration: 0.5 }, "-=0.5") // Start 0.5s early
.to(".box3", { rotation: 360 });Eases
Customize the feel of your animations.
- Standard:
"none","power1"to"power4","back","bounce","circ","elastic","expo","sine". - Add
.in,.out, or.inOut(e.g.,"power2.inOut").
---
React Usage (useGSAP)
When using React (or Next.js), always use the @gsap/react package and its useGSAP hook instead of standard useEffect. It automatically handles cleanup, preventing memory leaks and strict-mode double-firings.
import { useRef } from "react";
import gsap from "gsap";
import { useGSAP } from "@gsap/react";
gsap.registerPlugin(useGSAP);
export default function App() {
const container = useRef<HTMLDivElement>(null);
useGSAP(() => {
// gsap code here...
// All animations created here are automatically reverted on cleanup!
gsap.to(".box", { x: 360, duration: 2 });
}, { scope: container }); // Scope allows selecting elements only inside this container
return (
<div ref={container}>
<div className="box">Box</div>
</div>
);
}---
Popular Plugins
Plugins extend GSAP's core functionality. They must be registered before use.
ScrollTrigger
Animate elements on scroll, pin sections, or link animations to the scrollbar.
import gsap from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
gsap.to(".box", {
scrollTrigger: {
trigger: ".box",
start: "top center", // When top of element hits center of viewport
end: "bottom top",
scrub: true, // Tie animation strictly to scrollbar
pin: true,
},
x: 500,
});Other Notable Plugins:
- Flip: Seamlessly animate elements changing state/layout.
- Observer: Normalize events (scroll, touch, pointer) for intent-based interactions.
- Draggable: Make elements draggable, spinnable, or tossable.
- SplitText: Split HTML text into characters, words, or lines for granular animation (Premium).
- DrawSVG: Intuitively animate SVG strokes (Premium).
- MorphSVG: Morph any SVG path into another (Premium).
---
Common Patterns & Best Practices
- Registration: Always register plugins up front (e.g.,
gsap.registerPlugin(ScrollTrigger, useGSAP)). - React strict mode: Rely on
useGSAP()to avoid duplicate animations created by double invocation ofuseEffectin React 18 strict mode. - Transforms: Use GSAP shortcuts (
x,y,rotation,scale,autoAlpha) instead of standardtransformoropacitystrings for better performance and accuracy. - FOUC (Flash of Unstyled Content): For initial load animations, hide elements with CSS (
visibility: hidden, notdisplay: none) and usegsap.from()orgsap.set(..., { autoAlpha: 0 }).
---
Additional Resources
- reference.md — Official GSAP docs, core API, plugins, React integration — indexable
- Official Docs: https://gsap.com/docs/v3/
- React Guide: https://gsap.com/resources/React
- ScrollTrigger: https://gsap.com/docs/v3/Plugins/ScrollTrigger
License
Skill License - Free Use
This skill (the documentation, structure, and implementation) was created by Ender Puentes <Endev/> and is provided for free and open use. You are free to:
- Use this skill in any project, personal or commercial
- Modify the skill to fit your needs
- Distribute the skill to others
- Share modified versions of the skill
- Include this skill in your own skill collections
No restrictions apply – this skill is available for unrestricted use. Attribution is appreciated but not required.
Note: This skill documents and references GSAP; the skill itself is an independent work. GSAP has its own standard licensing terms.
GSAP — Reference & Official Documentation
This file complements the gsap skill with official documentation links and API sections for indexing.
Official documentation (indexable)
- Docs home: https://gsap.com/docs/v3/
- Getting started: https://gsap.com/docs/v3/GettingStarted
- React guide: https://gsap.com/resources/React
- Installation: https://gsap.com/docs/v3/Installation
- FAQ: https://gsap.com/docs/v3/FAQ
Core API
- gsap.to(): https://gsap.com/docs/v3/gsap/to/
- gsap.from(): https://gsap.com/docs/v3/gsap/from/
- gsap.fromTo(): https://gsap.com/docs/v3/gsap/fromTo/
- gsap.set(): https://gsap.com/docs/v3/gsap/set/
- gsap.killTweensOf(): https://gsap.com/docs/v3/gsap/killTweensOf/
- Timeline: https://gsap.com/docs/v3/gsap/timeline/
- Easing: https://gsap.com/docs/v3/Eases
- Stagger: https://gsap.com/docs/v3/Stagger
Plugins
- ScrollTrigger: https://gsap.com/docs/v3/Plugins/ScrollTrigger
- ScrollSmoother: https://gsap.com/docs/v3/Plugins/ScrollSmoother (Club GreenSock)
- Flip: https://gsap.com/docs/v3/Plugins/Flip
- Observer: https://gsap.com/docs/v3/Plugins/Observer
- Draggable: https://gsap.com/docs/v3/Plugins/Draggable
- SplitText: https://gsap.com/docs/v3/Plugins/SplitText (Premium)
- DrawSVG: https://gsap.com/docs/v3/Plugins/DrawSVGPlugin (Premium)
- MorphSVG: https://gsap.com/docs/v3/Plugins/MorphSVGPlugin (Premium)
React integration
- useGSAP hook: https://gsap.com/resources/React — Cleanup, scope, dependencies
- @gsap/react: Add
gsapand@gsap/reactvia package manager (see npm) - gsap.registerPlugin(useGSAP): Required before use
Common properties (tween config)
- duration, delay, ease, repeat, yoyo, stagger
- x, y, rotation, scale, opacity, autoAlpha
- onComplete, onStart, onUpdate, onRepeat, onReverseComplete
Installation
Add gsap (core) or gsap + @gsap/react (React/Next.js) via your package manager. See npm.