gsap-animation

gsap-animation is a skill for Claude Code, Codex from notedit/happy-skills. It costs 36 tokens per session (9,859 once invoked), scanned A, original, MIT.

A connection between GSAP, a JavaScript animation library, and Remotion, a React-based video creation tool.

In plain words
What is it for?
It helps build complex timelines, split and animate text, morph SVG shapes, draw paths, follow motion paths, and reuse named effects.
Why use it?
It provides advanced timing and shape effects when Remotion’s basic animation functions are not enough.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps build complex timelines, split and animate text, morph SVG shapes, draw paths, follow motion paths, and reuse named effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notedit/happy-skills/gsap-animation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add notedit/happy-skills --skill gsap-animation
Clone the repo
git clone --depth 1 https://github.com/notedit/happy-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gsap-animation

README.md
[![agentmods](https://agentmods.dev/badge/skills/notedit/happy-skills/gsap-animation/github.svg)](https://agentmods.dev/skills/notedit/happy-skills/gsap-animation)
Your own site
<a href="https://agentmods.dev/skills/notedit/happy-skills/gsap-animation"><img src="https://agentmods.dev/badge/skills/notedit/happy-skills/gsap-animation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gsap-animation

Your own site · 80×15
<a href="https://agentmods.dev/skills/notedit/happy-skills/gsap-animation"><img src="https://agentmods.dev/badge/skills/notedit/happy-skills/gsap-animation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.09859
Opus 5 $0.00018 $0.04929
Sonnet 5 $0.00007 $0.01972
Haiku 4.5 $0.00004 $0.00986

Measured 10d ago against content hash d9141fc4451c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gsap-animation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/video/gsap-animation/SKILL.md · 967 lines

How it starts

The opening of the file, as written. The whole thing — 967 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to use

Use this skill when creating Remotion video compositions that need GSAP's advanced animation capabilities beyond Remotion's built-in interpolate() and spring().

Use GSAP when you need:

  • Complex timeline orchestration (nesting, labels, position parameters like "-=0.5")
  • Text splitting animation (SplitText: chars/words/lines with mask reveals)
  • SVG shape morphing (MorphSVG), stroke drawing (DrawSVG), path-following (MotionPath)
  • Advanced easing (CustomEase from SVG paths, RoughEase, SlowMo, CustomBounce, CustomWiggle)
  • Stagger with grid, center/edges distribution
  • Character scramble/decode effects (ScrambleText)
  • Reusable named effects via gsap.registerEffect()

Use Remotion native interpolate() when:

  • Simple single-property animations (fade, slide, scale) -- do NOT use GSAP for these
  • Numeric counters/progress bars -- pure math, no timeline needed
  • Standard easing curves
  • Spring physics (spring())

GSAP Licensing: All plugins are 100% free since Webflow's 2024 acquisition (SplitText, MorphSVG, DrawSVG, etc.).


Setup

# In a Remotion project
npm install gsap
// src/gsap-setup.ts -- import once at entry point
import gsap from 'gsap';
import { SplitText } from 'gsap/SplitText';
import { MorphSVGPlugin } from 'gsap/MorphSVGPlugin';
import { DrawSVGPlugin } from 'gsap/DrawSVGPlugin';
import { MotionPathPlugin } from 'gsap/MotionPathPlugin';
import { ScrambleTextPlugin } from 'gsap/ScrambleTextPlugin';
import { CustomEase } from 'gsap/CustomEase';
import { CustomBounce } from 'gsap/CustomBounce';
import { CustomWiggle } from 'gsap/CustomWiggle';

gsap.registerPlugin(
  SplitText, MorphSVGPlugin, DrawSVGPlugin, MotionPathPlugin,
  ScrambleTextPlugin, CustomEase, CustomBounce, CustomWiggle,
);

export { gsap };

Core Hook: useGSAPTimeline

The bridge between GSAP and Remotion. Creates a paused timeline, seeks it to frame / fps every frame.

import { useCurrentFrame, useVideoConfig } from 'remotion';
import gsap from 'gsap';
import { useRef, useEffect } from 'react';

function useGSAPTimeline(
  buildTimeline: (tl: gsap.core.Timeline, container: HTMLDivElement) => void
) {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();
  const containerRef = useRef<HTMLDivElement>(null);
  const tlRef = useRef<gsap.core.Timeline | null>(null);

  useEffect(() => {
    if (!containerRef.current) return;
    const ctx = gsap.context(() => {
      const tl = gsap.timeline({ paused: true });
      buildTimeline(tl, containerRef.current!);
      tlRef.current = tl;
    }, containerRef);
    return () => { ctx.revert(); tlRef.current = null; };
  }, []);

  useEffect(() => {
    if (tlRef.current) tlRef.current.seek(frame / fps);
  }, [frame, fps]);

  return containerRef;
}

Read the full file on GitHub · 967 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 967 lines · 36 tokens per session scan A d9141fc4451c

Subscribe to this mod's changes

gsap-animation is a skill published in the GitHub repository notedit/happy-skills (340 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 9,859 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

tamagui

Universal React UI framework for web and native. Use when building cross-platform apps with Tamagui, creating styled components with styled(), configuring design tokens/themes, using Tamagui UI components, or working with animations. Triggers: "tamagui", "styled()", "$token", "XStack/YStack", "useTheme", "@tamagui/"…

tamagui/tamagui · 90 tokens

Remotion

Creates programmatic video with React via Remotion — compositions, sequences, and motion graphics animated with useCurrentFrame() and rendered to MP4. USE WHEN video, animation, motion graphics, video rendering, React video, render video, animate content, make a short, create animations, video overlay, explainer…

danielmiessler/LifeOS · 121 tokens

remotion-best-practices

Best practices for Remotion - Video creation in React.

vercel-labs/json-render · 17 tokens

r3f-animation

React Three Fiber animation - useFrame, useAnimations, spring physics, keyframes. Use when animating objects, playing GLTF animations, creating procedural motion, or implementing physics-based movement.

zebbern/claude-code-guide · 43 tokens

remotion-best-practices

Best practices for Remotion - Video creation in React.

haydenbleasel/ultracite · 17 tokens

add-component

Add a new visualization component to Unovis end to end — the TypeScript core, the shared registry, the generated framework wrappers, a dev example, a gallery example, and docs. Use when asked to add/create a new component, chart type, plot, or diagram to the library, or to wire an existing core component through to…

f5/unovis · 74 tokens