gsap
Skill126 starsChanged 4 months agoMITView on GitHub
GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.
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 8 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
dylantarreSkillframer-motion
Use when implementing Disney's 12 animation principles with Framer Motion in React applications
Also in 3 projects that use this
freshtechbroSkillanimejs
Versatile JavaScript animation engine for DOM, CSS, SVG, and JavaScript objects. Use when creating timeline-based animations, stagger effects, SVG morphing, keyframe sequences, or complex choreographed animations. Triggers on tasks involving Anime.js, timeline animations, staggered sequences, SVG path animations, morphing, or multi-step animation choreography. Alternative to GSAP for SVG-heavy animations and React-independent projects.
Also in 4 projects that use this
devanshuDesaiSkilldesign-audit
UI/UX design audit with Steve Jobs and Jony Ive design philosophy
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.3k99% same
- nateherkai/hyperframes-student-kit★ 1.2k99% same
- boraoztunc/skills★ 38878% same
- itgoyo/hermes-skills★ 6399% same
- anton-abyzov/vskill★ 4678% same
- assafkip/claude-video-editor★ 1999% same
- ilya-makarov-dev/Reframe★ 1897% same
- coopersimson96/ai-content-system★ 1799% same
- delorenj/skills★ 1578% same
- hoanghd218/claude-code-2-days★ 878% 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 repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-illustrationsSkill
- auto-cutSkill
- background-musicSkill
- color-gradingSkill
- hyperframes-cliSkill
- hyperframes-registrySkill
- hyperframesSkill
- key-layoutSkill
- make-a-videoSkill
- noti-tiktok-full-textSkill
- noti-tiktok-vnSkill
- noti-youtube-editSkill
- offline-voiceSkill
- remotion-assembleSkill
- short-form-videoSkill
- skill-authoringSkill
- video-pipelineSkill
- website-to-hyperframesSkill
- webui-designSkill
The file
We split this skill into the rules it gives an agent
12 rules. 5 are common, 0 are distinctive, and 7 are very specific to this project.
5
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Always use camelCase property names (e.g.
- Very specific: line 26
immediateRender: - default true for from()/fromTo().
- Very specific: line 30
Prefer GSAP's transform aliases over raw transform string:
- Very specific: line 42
autoAlpha: - prefer over opacity. At 0: also sets visibility: hidden.
- Very specific: line 139
paused: true: - create paused; call .play() to start.
- Common: line 170
Only on elements that actually animate.
- Very specific: line 185
Use stagger instead of separate tweens with manual delays.
- Common: line 199
Use camelCase property names.
- Common: line 200
Prefer timelines over chaining with delay.
- Very specific: line 201
Add labels with addLabel() for readable sequencing.
- Common: line 208
Use both svgOrigin and transformOrigin on the same SVG element.
- Common: line 210
Create tweens before the DOM exists.
“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 Tween Methods
- gsap.to(targets, vars) - animate from current state to
vars. Most common. - gsap.from(targets, vars) - animate from
varsto current state (entrances). - gsap.fromTo(targets, fromVars, toVars) - explicit start and end.
- gsap.set(targets, vars) - apply immediately (duration 0).
Always use camelCase property names (e.g. backgroundColor, rotationX).
Common vars
- duration - seconds (default 0.5).
- delay - seconds before start.
- ease -
"power1.out"(default),"power3.inOut","back.out(1.7)","elastic.out(1, 0.3)","none". - stagger - number
0.1or object:{ amount: 0.3, from: "center" },{ each: 0.1, from: "random" }. - overwrite -
false(default),true, or"auto". - repeat - number or
-1for infinite. yoyo - alternates direction with repeat. Never use-1in HyperFrames - infinite repeats break the capture engine; compute a finite count from the composition duration (see the hyperframes skill). - onComplete, onStart, onUpdate - callbacks.
- immediateRender - default
truefor from()/fromTo(). Setfalseon later tweens targeting the same property+element to avoid overwrite.
Transforms and CSS
Prefer GSAP's transform aliases over raw transform string:
| GSAP property | Equivalent |
x, y, z | translateX/Y/Z (px) |
xPercent, yPercent | translateX/Y in % |
scale, scaleX, scaleY | scale |
rotation | rotate (deg) |
rotationX, rotationY | 3D rotate |
skewX, skewY | skew |
transformOrigin | transform-origin |
- autoAlpha - prefer over
opacity. At 0: also setsvisibility: hidden. - CSS variables -
"--hue": 180. - svgOrigin (SVG only) - global SVG coordinate space origin. Don't combine with
transformOrigin. - Directional rotation -
"360_cw","-170_short","90_ccw". - clearProps -
"all"or comma-separated; removes inline styles on complete. - Relative values -
"+=20","-=10","*=2".
Function-Based Values
gsap.to(".item", {
x: (i, target, targets) => i * 50,
stagger: 0.1,
});Easing
Built-in eases: power1–power4, back, bounce, circ, elastic, expo, sine. Each has .in, .out, .inOut.
Defaults
gsap.defaults({ duration: 0.6, ease: "power2.out" });Controlling Tweens
const tween = gsap.to(".box", { x: 100 });
tween.pause();
tween.play();
tween.reverse();
tween.kill();
tween.progress(0.5);
tween.time(0.2);gsap.matchMedia() (Responsive + Accessibility)
Runs setup only when a media query matches; auto-reverts when it stops matching.
let mm = gsap.matchMedia();
mm.add(
{
isDesktop: "(min-width: 800px)",
reduceMotion: "(prefers-reduced-motion: reduce)",
},
(context) => {
const { isDesktop, reduceMotion } = context.conditions;
gsap.to(".box", {
rotation: isDesktop ? 360 : 180,
duration: reduceMotion ? 0 : 2,
});
},
);Timelines
Creating a Timeline
const tl = gsap.timeline({ defaults: { duration: 0.5, ease: "power2.out" } });
tl.to(".a", { x: 100 }).to(".b", { y: 50 }).to(".c", { opacity: 0 });Position Parameter
Third argument controls placement:
- Absolute:
1- at 1s - Relative:
"+=0.5"- after end;"-=0.2"- before end - Label:
"intro","intro+=0.3" - Alignment:
"<"- same start as previous;">"- after previous ends;"<0.2"- 0.2s after previous starts
tl.to(".a", { x: 100 }, 0);
tl.to(".b", { y: 50 }, "<"); // same start as .a
tl.to(".c", { opacity: 0 }, "<0.2"); // 0.2s after .b startsLabels
tl.addLabel("intro", 0);
tl.to(".a", { x: 100 }, "intro");
tl.addLabel("outro", "+=0.5");
tl.play("outro");
tl.tweenFromTo("intro", "outro");Timeline Options
- paused: true - create paused; call
.play()to start. - repeat, yoyo - apply to whole timeline.
- defaults - vars merged into every child tween.
Nesting Timelines
const master = gsap.timeline();
const child = gsap.timeline();
child.to(".a", { x: 100 }).to(".b", { y: 50 });
master.add(child, 0);Playback Control
tl.play(), tl.pause(), tl.reverse(), tl.restart(), tl.time(2), tl.progress(0.5), tl.kill().
Performance
Prefer Transform and Opacity
Animating x, y, scale, rotation, opacity stays on the compositor. Avoid width, height, top, left when transforms achieve the same effect.
will-change
will-change: transform;Only on elements that actually animate.
gsap.quickTo() for Frequent Updates
let xTo = gsap.quickTo("#id", "x", { duration: 0.4, ease: "power3" }),
yTo = gsap.quickTo("#id", "y", { duration: 0.4, ease: "power3" });
container.addEventListener("mousemove", (e) => {
xTo(e.pageX);
yTo(e.pageY);
});Stagger > Many Tweens
Use stagger instead of separate tweens with manual delays.
Cleanup
Pause or kill off-screen animations.
References (loaded on demand)
- references/effects.md - Drop-in effects: typewriter text, audio visualizer. Read when needing ready-made effect patterns for HyperFrames.
Best Practices
- Use camelCase property names; prefer transform aliases and autoAlpha.
- Prefer timelines over chaining with delay; use the position parameter.
- Add labels with
addLabel()for readable sequencing. - Pass defaults into timeline constructor.
- Store tween/timeline return value when controlling playback.
Do Not
- Animate layout properties (width/height/top/left) when transforms suffice.
- Use both svgOrigin and transformOrigin on the same SVG element.
- Chain animations with delay when a timeline can sequence them.
- Create tweens before the DOM exists.
- Skip cleanup - always kill tweens when no longer needed.
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.

