Agent skill

Gsap

by alecs5am in alecs5am/ralphy

GSAP animation reference for HyperFrames. An agent skill from alecs5am/ralphy.

Apache-2.0Auto-check passedFrontend & Design

Install Gsap

skills CLI
$ npx skills add alecs5am/ralphy --skill gsap -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alecs5am/ralphy gsap --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alecs5am/ralphy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gsap .claude/skills/gsap && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gsap
GitHub stars
138
Token cost
~2.4k tokens
SKILL.md length
698 words
Files
5 (incl. scripts, references)
Skills in repo
28
Repo updated
First seen
Licence
Apache-2.0

At a glance

GSAP animation reference for HyperFrames. An agent skill from alecs5am/ralphy.

  • Writing GSAP animations in HyperFrames compositions
  • SKILL.md covers HyperFrames Contract, Core Tween Methods, Common vars and Transforms and CSS, plus 11 more sections
  • Runs Python scripts from its folder; reaches cdn.jsdelivr.net
  • Animating text per-char/word/line

What it does

Gsap is an agent skill from alecs5am/ralphy. GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), performance (transforms, will-change, quickTo), plugins (SplitText, DrawSVG, MorphSVG, MotionPath, Flip, CustomEase/CustomWiggle/CustomBounce, Physics2D, ScrambleText — via references/plugins.md), and gsap.utils (distribute, interpolate, snap, wrap, mapRange, splitColor — via references/utils.md). Use when writing GSAP animations in…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/effects.md`, `references/plugins.md` and `references/utils.md`).

It sits in Frontend & Design, covering Web animation and motion and Motion graphics. It works with GSAP and HeyGen. The repository describes itself as: Open-source desktop app for content creation, with an agent runtime and standalone CLI. The licence is Apache-2.0.

When your agent uses it

  • Writing GSAP animations in HyperFrames compositions
  • Animating text per-char/word/line
  • Moving along a path
  • Distributing values across many elements

Example prompts

  • “/gsap”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 8d139f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • cdn.jsdelivr.net

    Also links to:

    • github.com
    • gsap.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gsap loads about 2.4k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 168 tokens; SKILL.md has 698 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~168
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from alecs5am/ralphy at commit 8d139f0, republished under its Apache-2.0 licence (© alecs5am). 698 words, ~2,353 tokens.

Download SKILL.mdSave it as .claude/skills/gsap/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
gsap
description
GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), performance (transforms, will-change, quickTo), plugins (SplitText, DrawSVG, MorphSVG, MotionPath, Flip, CustomEase/CustomWiggle/CustomBounce, Physics2D, ScrambleText — via references/plugins.md), and gsap.utils (distribute, interpolate, snap, wrap, mapRange, splitColor — via references/utils.md). Use when writing GSAP animations in HyperFrames compositions, animating text per-char/word/line, drawing or morphing SVG, moving along a path, or distributing values across many elements.

GSAP

HyperFrames Contract

HyperFrames controls GSAP through its gsap runtime adapter. Create a paused timeline synchronously, register it on window.__timelines with the exact data-composition-id, and let HyperFrames seek it.

html
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<script>
  window.__timelines = window.__timelines || {};
  const tl = gsap.timeline({ paused: true });

  tl.from(".title", { y: 48, opacity: 0, duration: 0.6, ease: "power3.out" }, 0);
  tl.to(".accent", { scaleX: 1, duration: 0.5, ease: "power2.out" }, 0.25);

  window.__timelines["main"] = tl; // key must equal data-composition-id on the composition root
</script>
  • The registry key must match the composition root's data-composition-id.
  • Do not call tl.play() for render-critical motion.
  • Do not build timelines inside async code, timers, or event handlers.
  • Keep loops finite. HyperFrames renders finite video durations.

Core Tween Methods

  • gsap.to(targets, vars) — animate from current state to vars. Most common.
  • gsap.from(targets, vars) — animate from vars to 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.1 or object: { amount: 0.3, from: "center" }, { each: 0.1, from: "random" }.
  • overwrite — false (default), true, or "auto".
  • repeat — finite number; never -1 in HyperFrames. Compute repeats from the visible duration. yoyo — alternates direction with repeat.
  • onComplete, onStart, onUpdate — callbacks.
  • immediateRender — default true for from()/fromTo(). Set false on later tweens targeting the same property+element to avoid overwrite.

Transforms and CSS

Prefer GSAP's transform aliases over raw transform string:

GSAP propertyEquivalent
x, y, ztranslateX/Y/Z (px)
xPercent, yPercenttranslateX/Y in %
scale, scaleX, scaleYscale
rotationrotate (deg)
rotationX, rotationY3D rotate
skewX, skewYskew
transformOrigintransform-origin
  • autoAlpha — prefer over opacity. At 0: also sets visibility: 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

javascript
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

javascript
gsap.defaults({ duration: 0.6, ease: "power2.out" });

Controlling Tweens

javascript
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.

javascript
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
javascript
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
javascript
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 starts
Labels
javascript
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
javascript
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
css
will-change: transform;

Only on elements that actually animate.

gsap.quickTo() for Frequent Updates
javascript
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.

Show full SKILL.md (274 more words)Show less
Cleanup

Pause or kill off-screen animations.


References (loaded on demand)

FileWhen to read it
references/effects.mdReady-made effect patterns: typewriter text, audio visualizer.
references/plugins.mdAny GSAP plugin work: SplitText (per-char/word/line text animation), DrawSVG (stroke draw-on), MorphSVG (shape morph), MotionPath (move along a path), Flip (layout-state transitions), CustomEase / CustomWiggle / CustomBounce (camera shake, custom curves), Physics2D / PhysicsProps (projectiles, confetti), ScrambleText, GSDevTools, Pixi. CDN registration recipe included.
references/utils.mdgsap.utils helpers: distribute (grid/cascade value spreads), interpolate, mapRange / normalize / clamp, snap, wrap / wrapYoyo, splitColor, toArray / selector / pipe, random (with the determinism caveat).

The plugin and utils references are vendored from the official greensock/gsap-skills (MIT) with HyperFrames adaptation headers — read those headers first; upstream examples assume interactive pages, not seek-driven renders.

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.
  • Use infinite repeat values in HyperFrames compositions. Use finite repeat counts computed from the visible duration.

Credits And References

  • HyperFrames adapter source: packages/core/src/runtime/adapters/gsap.ts.
  • GSAP documentation: https://gsap.com/docs/v3/
  • GSAP timeline pause and seek behavior: https://gsap.com/docs/v3/GSAP/Timeline/pause%28%29/
  • Official GSAP skills (upstream of references/plugins.md and references/utils.md): https://github.com/greensock/gsap-skills (MIT, vendored at commit aed9cfd). The upstream gsap-react, gsap-frameworks, and gsap-scrolltrigger skills are intentionally NOT vendored — compositions are vanilla single-file HTML and renders have no scroll; consult upstream directly if that ever changes.

© alecs5am, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in .agents/skills/gsap of alecs5am/ralphy.

  • SKILL.md
  • references/effects.md
  • references/plugins.md
  • references/utils.md
  • scripts/extract-audio-data.py

Open the folder on GitHubat commit 8d139f0

Compare with similar skills

Gsap next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gsap compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gsap this skillalecs5am/ralphy138—~2.4kAutomated safety check: PassApache-2.0
Yuv Pilothoodini/ai-agents-skills282—~4.7kAutomated safety check: PassNone
Gsapboraoztunc/skills3975 repos~1.9kAutomated safety check: PassApache-2.0
HyperFrames Animationheygen-com/hyperframes59k3 repos~2.1kAutomated safety check: PassApache-2.0
Yuv Viral Videohoodini/ai-agents-skills282—~7.5kAutomated safety check: NotesNone
Hyperframes Animationchmonitor/chmonitor2992 repos~1.8kAutomated safety check: PassGPL-3.0

Similar skills

  • Yuv Pilot

    hoodini/ai-agents-skills

    Top-of-pyramid orchestrator for Yuval Avidani's YUV.AI brand work.

    282 GitHub stars~4.7k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Gsap

    boraoztunc/skills

    GSAP animation reference for HyperFrames. An agent skill from boraoztunc/skills.

    397 GitHub starsUsed in 5 repos~1.9k tokens
    Frontend & DesignAuto-check passed
  • HyperFrames Animation

    heygen-com/hyperframes

    Collects motion rules, scene blueprints, transitions and runtime adapters for HyperFrames video compositions, with GSAP as the default animation runtime.

    59k GitHub starsUsed in 3 repos~2.1k tokens
    Media & CreativeAuto-check passed
  • Yuv Viral Video

    hoodini/ai-agents-skills

    Edit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), dark-mode polish, MrBeast-paced cuts…

    282 GitHub stars~7.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Hyperframes Animation

    chmonitor/chmonitor

    All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus…

    299 GitHub starsUsed in 2 repos~1.8k tokens
    Media & CreativeAuto-check passed
  • Motion Design

    LottieFiles/motion-design-skill

    Applies motion design principles to create emotionally-driven, technically sound animations and transitions.

    2k GitHub starsUsed in 1 repo~3.1k tokens
    Frontend & DesignAuto-check passed

More from alecs5am/ralphy

All 28 skills in this repo
  • Researcher

    alecs5am/ralphy

    Deep-research workflow for UGC reference material — turns one or more URLs / handles / trend queries into a single cited research report (report.md + sources.json) that a scenarist or art-director…

    138 GitHub stars~1.9k tokensUpdated 17 days ago
    Auto-check passed
  • Editor

    alecs5am/ralphy

    Composition and render craft — assembles scenario.json plus asset-manifest.json into a HyperFrames HTML composition and renders the mp4.

    138 GitHub stars~3.6k tokensUpdated 17 days ago
    Auto-check passed
  • Evaluator

    alecs5am/ralphy

    Quality evaluation of rendered UGC mp4s — scene segmentation, audio loudness / dead-air, caption density, and per-scene visual analysis.

    138 GitHub stars~3.6k tokensUpdated 17 days ago
    Auto-check passed
  • Producer

    alecs5am/ralphy

    End-to-end orchestration — the wrapper that drives the whole production contract across roles, plus batch production.

    138 GitHub stars~4.7k tokensUpdated 17 days ago
    Auto-check passed
  • Scenarist

    alecs5am/ralphy

    Scenario and script craft — writes and reworks the scene-by-scene scenario.json: hook, beat structure, per-scene VO, on-screen text, pacing, and the language/aspect pre-flight.

    138 GitHub stars~3.2k tokensUpdated 17 days ago
    Auto-check passed
  • Troubleshooting

    alecs5am/ralphy

    Ralphy CLI operations and repair — environment setup, API keys and connectors, ralphy doctor, reading logs, diagnosing a failed generation or render, and the CLI cookbook for verbs other roles call.

    138 GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check passed

Works with

Questions about Gsap

What does Gsap do?

GSAP animation reference for HyperFrames. An agent skill from alecs5am/ralphy. Gsap is an agent skill from alecs5am/ralphy. GSAP animation reference for HyperFrames.

When should I use Gsap?

Gsap fits situations like: writing GSAP animations in HyperFrames compositions; animating text per-char/word/line; moving along a path; distributing values across many elements.

How do I install Gsap in Claude Code?

Run `npx skills add alecs5am/ralphy --skill gsap -a claude-code`. Or copy the skill folder (.agents/skills/gsap in alecs5am/ralphy) into .claude/skills/gsap in your project. Claude Code loads it when a task matches its description.

How do I install Gsap in Codex?

Run `npx skills add alecs5am/ralphy --skill gsap -a codex`. Or copy the skill folder (.agents/skills/gsap in alecs5am/ralphy) into .agents/skills/gsap in your project. Codex loads it when a task matches its description.

Can I use Gsap in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alecs5am/ralphy --skill gsap -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gsap, .gemini/skills/gsap, .github/skills/gsap and .opencode/skills/gsap in your project.

What does Gsap need to run?

Going by SKILL.md and its folder, Gsap needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Gsap access the network?

SKILL.md names 3 domains. In commands or code: cdn.jsdelivr.net; the agent is likely to contact it when it follows the instructions. As links in the text: github.com and gsap.com. This is read from the text; nothing was executed.

Is Gsap safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Gsap use?

Gsap is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gsap use?

About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8k tokens, read only when the agent opens those files.

What are the alternatives to Gsap?

Skills that share tags, products or a category with Gsap: Yuv Pilot (hoodini/ai-agents-skills, 282 stars), Gsap (boraoztunc/skills, 397 stars), HyperFrames Animation (heygen-com/hyperframes, 59k stars) and Yuv Viral Video (hoodini/ai-agents-skills, 282 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gsap?

alecs5am (a GitHub user) maintains it in alecs5am/ralphy, which has 138 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on September 22, 2026.

Source: alecs5am/ralphy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.