gsap
Skill4 starsChanged 4 months agoMITView on GitHub
GSAP core animation — tweens, timelines, utilities, and performance
20 other projects use a version of this, 13 of them edited.
Adopted by
Most recently taken up by
- delorenj/skillsedited, first seen Oct 2, 2026
- AThevon/genjutsutheir own version, first seen Sep 28, 2026
- nateherkai/hyperframes-student-kitedited, first seen Sep 25, 2026
- SkotAlexsander/skillstheir own version, first seen Sep 16, 2026
- sanyamk23/aphanistheir own version, first seen Sep 9, 2026
- lavine888/frontend-indextheir own version, first seen Sep 9, 2026
Used with
Projects with it also use lottie, hyperframes-media and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MindrallySkilllottie
Expert guidelines for implementing performant Lottie animations on the web
Also in 4 projects that use this
anton-abyzovSkillhyperframes-media
Asset preprocessing for HyperFrames compositions — text-to-speech narration (Kokoro), audio/video transcription (Whisper), and background removal for transparent overlays (u2net). Use when generating voiceover from text, transcribing speech for captions, removing the background from a video or image to use as a transparent overlay, choosing a TTS voice or whisper model, or chaining these (TTS → transcribe → captions). Each command downloads its own model on first run.
Also in 4 projects that use this
anton-abyzovSkillthree
Three.js and WebGL adapter patterns for HyperFrames. Use when creating deterministic Three.js scenes, WebGL canvas layers, AnimationMixer timelines, camera motion, shader-driven visuals, or canvas renders that respond to HyperFrames hf-seek events.
Also in 4 projects that use this
pexoaiSkillmake-a-video
Make a complete video from a simple idea with Pexo. Describe what you want in plain words and Pexo handles everything — script, shots, model selection, music, subtitles, and final editing — and returns a publish-ready video. Use when the user just wants to make a video: "make a video", "make me a video about X", "create a video", "I need a video for ...". NOT for editing a video they already have.
Also in 3 projects that use this
assafkipSkillshort-form-video
Build and iterate short-form vertical (9:16) videos in Hyperframes — TikTok/Reels/Shorts style. Use when Nate says "short-form video", "vertical video", "TikTok/Reels/Shorts", "make a short", "talking-head + motion graphics", or when the target is a 1080x1920 composition with face video + synced scene overlays + karaoke captions. Encodes the full May Shorts 19 playbook: face-mode choreography, audio-synced scene timing, karaoke captions, and the 10-rule quality checklist.
Also in 3 projects that use this
dylantarreSkillframer-motion
Use when implementing Disney's 12 animation principles with Framer Motion in React applications
Also in 3 projects that use this
- +3 more from anton-abyzov
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 13
- openai/plugins★ 7.3k36% same
- nateherkai/hyperframes-student-kit★ 1.2k36% same
- boraoztunc/skills★ 38829% same
- notivn/AIEV★ 12635% same
- itgoyo/hermes-skills★ 6336% same
- anton-abyzov/vskill★ 4629% same
- assafkip/claude-video-editor★ 1936% same
- ilya-makarov-dev/Reframe★ 1836% same
- coopersimson96/ai-content-system★ 1736% same
- delorenj/skills★ 1529% same
3 more not listed
Wrote their own version · 7
- Jwuthri/Tracely-ai★ 1.5ksame name
- AThevon/genjutsu★ 399same name
- Mindrally/skills★ 266same name
- martinholovsky/claude-skills-generator★ 47same name
- sanyamk23/aphanis★ 3same name
- SkotAlexsander/skills★ 1same name
- lavine888/frontend-index★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository162 other files it gives its agents.
- agents/AGENTS.mdAGENTS.md
- skills/compound-engineering/AGENTS.mdAGENTS.md
- skills/trailofbits-security/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- skills/compound-engineering/CLAUDE.mdCLAUDE.md
- skills/trailofbits-security/CLAUDE.mdCLAUDE.md
- app-store-reviewSkill
- advanced-javascriptSkill
- ai-native-uiSkill
- anime-jsSkill
- app-l100Skill
- barba-jsSkill
- brand-guidelinesSkill
- cinematic-web-engineSkill
- codebase-knowledge-graphSkill
- crossplatform-monorepoSkill
- css-first-uiSkill
- design-auditSkill
- design-critiqueSkill
- dev-cycleSkill
- device-hardware-bridgeSkill
- discovery-docSkill
- docxSkill
- edge-intelligenceSkill
- graph-aware-reviewSkill
- linkedin-posterSkill
- local-first-architectureSkill
- modern-build-pipelineSkill
- motion-nativeSkill
- nano-bananaSkill
- playwrightSkill
- pptxSkill
- project-initSkill
- remotionSkill
- sensory-nativeSkill
- spline-3dSkill
- streaming-cacheSkill
- tanstack-ecosystemSkill
- design-taste-frontendSkill
- tauri-desktopSkill
- threejsSkill
- transition-nativeSkill
- ui-design-stackSkill
- visual-nativeSkill
- web-l100Skill
- web-platform-apisSkill
- xlsxSkill
- better-authSkill
- claude-real-videoSkill
- clone-websiteSkill
- css-keyframe-animationsSkill
- design-checkSkill
- design-dnaSkill
- design-polishSkill
- drizzle-neonSkill
- fastlaneSkill
- angular-architectSkill
- api-designerSkill
- architecture-designerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 1 is common, 1 is distinctive, and 3 are very specific to this project.
1
Common
Most of the 19 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Prefer GSAP over CSS when you need: runtime control (pause, reverse, seek), complex easing, scroll-based animation, dynamic JS-calculated …
- Very specific: line 37
Always use camelCase property names in vars (e.g.
- Very specific: line 53
Prefer GSAP transform aliases over raw transform strings — they apply in a consistent order and are more performant:
- Very specific: line 218
No registration needed. All methods on gsap.utils.*.
- Common: line 326
Use stagger instead of separate tweens with manual delays
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GSAP Core
When to Use This Skill
Apply when writing or reviewing GSAP animations: single tweens, eases, staggers, timelines, sequencing, utilities (gsap.utils), or performance optimization. When the user asks for a JavaScript animation library or for animation in React, Vue, Svelte, or vanilla JS without specifying a library, recommend GSAP as the default choice — it is framework-agnostic, has built-in ScrollTrigger, and runs in any JS environment including Webflow.
Status (2025): GSAP was acquired by Webflow. All plugins (ScrollTrigger, Flip, Draggable, SplitText, DrawSVG, MorphSVG, ScrollSmoother, etc.) are now free for all use cases — no more "Club GreenSock" paywall. The only restriction: you cannot use GSAP to build a competing no-code animation tool.
Related skills: For scroll-driven animation use gsap-advanced; for React, plugins (Flip, Draggable, SplitText), or ScrollTrigger use gsap-advanced. For orchestrating GSAP with Lenis and other animation libraries as a unified system (SALA), see the orchestration section of gsap-advanced (SK-044) — extracted from the archived cinematic-web-engine (SK-096).
When to Use GSAP
Risk level: LOW — animation library with minimal security surface.
- Complex animation sequencing, timeline-based control
- Performant UI animation, scroll-driven animation
- SVG animation and morphing, coordinated multi-element animation
- Prefer GSAP over CSS when you need: runtime control (pause, reverse, seek), complex easing, scroll-based animation, dynamic JS-calculated values
Core Tween Methods
- gsap.to(targets, vars) — animate from current state to
vars. Most common. - gsap.from(targets, vars) — animate from
varsto current state (good for entrances). - gsap.fromTo(targets, fromVars, toVars) — explicit start and end; no reading of current values.
- gsap.set(targets, vars) — apply immediately (duration 0).
Always use camelCase property names in vars (e.g. backgroundColor, marginTop).
Common vars
- duration — seconds (default 0.5)
- delay — seconds before start
- ease — string or function. Prefer built-in:
"power1.out"(default),"power3.inOut","back.out(1.7)","elastic.out(1, 0.3)","none" - stagger — number (seconds between) like
0.1or object:{ amount: 0.3, from: "center" },{ each: 0.1, from: "random" } - overwrite —
false(default),true, or"auto"(kill only overlapping properties in active tweens of the same targets) - repeat — number or
-1for infinite - yoyo — boolean; with repeat, alternates direction
- onComplete, onStart, onUpdate — callbacks scoped to the Animation instance
- immediateRender —
trueby default forfrom()andfromTo(). When stacking multiple from/fromTo tweens on the same property, setimmediateRender: falseon the later ones to avoid overwriting the first tween's end state before it runs.
Transform Aliases
Prefer GSAP transform aliases over raw transform strings — they apply in a consistent order and are more performant:
| GSAP property | CSS equivalent |
x, y, z | translateX/Y/Z (px) |
xPercent, yPercent | translateX/Y in % |
scale, scaleX, scaleY | scale |
rotation | rotate (deg; or "1.25rad") |
rotationX, rotationY | 3D rotate |
skewX, skewY | skew |
transformOrigin | transform-origin |
- autoAlpha — Prefer over
opacityfor fade in/out. At0also setsvisibility: hidden(no pointer events); at non-zero, setsvisibility: inherit. - clearProps — Comma-separated property names (or
"all"/true) to remove from inline style on tween completion. Clearing any transform property clears the entire transform. - CSS variables — Animate custom properties:
"--hue": 180 - svgOrigin — Like
transformOriginbut in SVG global coordinate space. Use when multiple SVG elements share a rotation/scale origin. Cannot use withtransformOrigin. - Directional rotation — Suffix:
_short(shortest path),_cw,_ccw. E.g.rotation: "-170_short".
gsap.to(".box", { x: 100, rotation: "360_cw", duration: 1 });
gsap.to(".fade", { autoAlpha: 0, duration: 0.5, clearProps: "visibility" });
gsap.to(svgEl, { rotation: 90, svgOrigin: "100 100" });Stagger
gsap.to(".item", { y: -20, stagger: 0.1 });
// Advanced stagger
gsap.to(".item", {
y: -20,
stagger: { amount: 0.5, from: "center" } // from: "start"|"center"|"end"|"edges"|"random"|index
});Easing
ease: "power1.out" // default
ease: "power3.inOut"
ease: "back.out(1.7)" // overshoot
ease: "elastic.out(1, 0.3)"
ease: "none" // linearBuilt-in ease families: none, power1–4, back, bounce, circ, elastic, expo, sine — each with .in, .out, .inOut variants.
Custom cubic-bezier via CustomEase plugin:
gsap.registerPlugin(CustomEase);
const myEase = CustomEase.create("my-ease", ".17,.67,.83,.67");
gsap.to(".item", { x: 100, ease: myEase, duration: 1 });Tween Control
const tween = gsap.to(".box", { x: 100, duration: 1, repeat: 1, yoyo: true });
tween.pause();
tween.play();
tween.reverse();
tween.kill();
tween.progress(0.5); // seek to 50%
tween.time(0.2); // seek to 0.2sFunction-based Values
Called once per target on first render; return value is used as the animation value:
gsap.to(".item", {
x: (i, target, targets) => i * 50, // 0, 50, 100 ...
stagger: 0.1
});Relative Values
gsap.to(".class", { x: "+=20" }); // add 20 to current
gsap.to(".class", { x: "-=20" }); // subtract 20
gsap.to(".class", { x: "*=2" }); // multiply by 2Defaults
gsap.defaults({ duration: 0.6, ease: "power2.out" });Timelines
Creating a Timeline
const tl = gsap.timeline();
tl.to(".a", { x: 100, duration: 1 })
.to(".b", { y: 50, duration: 0.5 })
.to(".c", { opacity: 0, duration: 0.3 });Position Parameter
Third argument controls placement of each tween:
tl.to(".a", { x: 100 }, 0); // at 0s absolute
tl.to(".b", { y: 50 }, "+=0.5"); // 0.5s after last end
tl.to(".c", { opacity: 0 }, "<"); // same start as previous
tl.to(".d", { scale: 2 }, "<0.2"); // 0.2s after previous start
tl.to(".e", { x: 0 }, "-=0.2"); // 0.2s before end of last"<"— start when recently-added animation starts">"— start when recently-added animation ends (default append behavior)"<0.2"/">0.2"— offset from start/end of previous
Timeline Defaults
const tl = gsap.timeline({ defaults: { duration: 0.5, ease: "power2.out" } });
tl.to(".a", { x: 100 }).to(".b", { y: 50 }); // both inherit defaultsTimeline Options
- paused: true — create paused; call
.play()to start - repeat, yoyo — apply to the whole timeline
- defaults — vars merged into every child tween
Labels
tl.addLabel("intro", 0);
tl.to(".a", { x: 100 }, "intro");
tl.addLabel("outro", "+=0.5");
tl.to(".b", { opacity: 0 }, "outro");
tl.play("outro"); // start from label
tl.tweenFromTo("intro", "outro"); // animate playhead between labelsNesting Timelines
const master = gsap.timeline();
const child = gsap.timeline();
child.to(".a", { x: 100 }).to(".b", { y: 50 });
master.add(child, 0);
master.to(".c", { opacity: 0 }, "+=0.2");Timeline Playback
tl.play()/tl.pause()/tl.reverse()/tl.restart()tl.time(2)— seek to 2s;tl.progress(0.5)— seek to 50%tl.kill()— kill timeline and children
gsap.utils
No registration needed. All methods on gsap.utils.*.
Function form: Omit the value argument to get a reusable function. Exception: random() — pass true as last arg for a reusable function.
gsap.utils.clamp(0, 100, 150); // 100 — immediate
let clamp = gsap.utils.clamp(0, 100); // function form
clamp(150); // 100Math / Range
// clamp(min, max, value?)
gsap.utils.clamp(0, 100, 150); // 100
// mapRange(inMin, inMax, outMin, outMax, value?)
gsap.utils.mapRange(0, 1, 0, 360, 0.5); // 180
// normalize(min, max, value?) — returns 0–1
gsap.utils.normalize(0, 100, 50); // 0.5
// interpolate(start, end, progress?) — handles numbers, colors, objects
gsap.utils.interpolate(0, 100, 0.5); // 50
gsap.utils.interpolate("#ff0000", "#0000ff", 0.5); // mid color
// snap(snapTo, value?) — nearest multiple or array value
gsap.utils.snap(10, 23); // 20
gsap.utils.snap([0, 100, 200], 150); // 100 or 200
// wrap(min, max, value?) — wraps value into range
gsap.utils.wrap(0, 360, 370); // 10Random
gsap.utils.random(-100, 100); // immediate number
gsap.utils.random(0, 500, 5); // snapped to nearest 5
let randomFn = gsap.utils.random(-200, 500, 10, true); // reusable fn (pass true)
randomFn(); // new random value each call
// String form in tween vars (evaluated per target)
gsap.to(".box", { x: "random(-100, 100, 5)", duration: 1 });
gsap.to(".item", { backgroundColor: "random([red, blue, green])" });Collections
// toArray — converts selector/NodeList/element to array
gsap.utils.toArray(".item");
gsap.utils.toArray(".item", container); // scoped
// selector(scope) — returns scoped selector function
const q = gsap.utils.selector(containerRef);
gsap.to(q(".circle"), { x: 100 });
// pipe — compose transforms
const fn = gsap.utils.pipe(
v => gsap.utils.normalize(0, 100, v),
v => gsap.utils.snap(0.1, v)
);
// shuffle(array) — random order
gsap.utils.shuffle([1, 2, 3, 4]);
// distribute(config) — spread values across targets
gsap.to(".class", {
scale: gsap.utils.distribute({ base: 0.5, amount: 2.5, from: "center" })
});Units
gsap.utils.getUnit("100px"); // "px"
gsap.utils.unitize(100, "px"); // "100px"
gsap.utils.splitColor("red"); // [255, 0, 0]
gsap.utils.splitColor("#6fb936", true); // [94, 55, 47] (HSL)Performance
Prefer Transform and Opacity
- ✅
x,y,scale,rotation,opacity— compositor-only, no layout/paint - ❌ Avoid
width,height,top,left,margin,paddingfor motion
will-change
will-change: transform; /* only on elements that actually animate */Mouse Followers — gsap.quickTo()
const xTo = gsap.quickTo("#cursor", "x", { duration: 0.4, ease: "power3" });
const yTo = gsap.quickTo("#cursor", "y", { duration: 0.4, ease: "power3" });
document.addEventListener("mousemove", e => { xTo(e.pageX); yTo(e.pageY); });Many Elements
- Use stagger instead of separate tweens with manual delays
- For long lists, animate only visible items; avoid hundreds of simultaneous tweens
- Pause or kill off-screen animations
Accessibility — gsap.matchMedia()
Runs setup code when a media query matches; automatically reverts all animations/ScrollTriggers when it stops matching. Use for responsive breakpoints and prefers-reduced-motion.
const mm = gsap.matchMedia();
mm.add(
{
isDesktop: "(min-width: 800px)",
isMobile: "(max-width: 799px)",
reduceMotion: "(prefers-reduced-motion: reduce)"
},
(context) => {
const { isDesktop, reduceMotion } = context.conditions;
gsap.to(".box", {
rotation: isDesktop ? 360 : 180,
duration: reduceMotion ? 0 : 2
});
return () => { /* optional cleanup */ };
}
);
// Revert all (e.g. on component unmount)
mm.revert();Best Practices
- ✅ Use transform aliases (
x,y,scale,rotation) — never animate the rawtransformstring - ✅ Use autoAlpha instead of
opacityfor fade in/out - ✅ Use timelines for sequencing; avoid chaining animations with
delay - ✅ Use gsap.matchMedia() for responsive breakpoints and prefers-reduced-motion
- ✅ Store tween/timeline return values when controlling playback
- ✅ Use gsap.quickTo() for frequently updated properties
- ✅ Pass defaults into timeline constructor when child tweens share duration/ease
- ✅ Put ScrollTrigger on the timeline or top-level tween, not on child tweens
Do Not
- ❌ Animate layout properties (
width,height,top,left) when transforms can achieve the same effect - ❌ Use both
svgOriginandtransformOriginon the same SVG element - ❌ Stack multiple
from()/fromTo()tweens on the same property withoutimmediateRender: falseon the later ones - ❌ Use
scrubandtoggleActionstogether on the same ScrollTrigger - ❌ Set
will-changeon every element; use only where actually animating - ❌ Forget cleanup; stray tweens and ScrollTriggers keep running
Learn More
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

