gsap-scrolltrigger

A guide to GSAP ScrollTrigger, a web-animation tool for linking movement to page scrolling. It covers scroll triggers, pinned sections, and scrubbed animations that follow the scroll position.

In plain words
What is it for?
Creating parallax effects, scroll-triggered animations, pinned sections, and animations controlled by scrolling.
Why use it?
It explains how to build scroll-based effects without having to work out the plugin setup and timing rules from scratch.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/isaacsight/kernel/gsap-scrolltrigger
Any agent
npx skills add isaacsight/kernel --skill gsap-scrolltrigger
Clone the repo
git clone --depth 1 https://github.com/isaacsight/kernel

Made for: Claude Code, Codex.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00068 $0.04484
Opus 5 $0.00034 $0.02242
Sonnet 5 $0.00014 $0.00897
Haiku 4.5 $0.00007 $0.00448

Measured 2d ago against content hash 9351b6666a47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gsap-scrolltrigger 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 2d 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.

Origin

This is a copy

100% identical to gsap-scrolltrigger — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/gsap-scrolltrigger/SKILL.md · 297 lines

How it starts

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

GSAP ScrollTrigger

When to Use This Skill

Apply when implementing scroll-driven animations: triggering tweens/timelines on scroll, pinning elements, scrubbing animation to scroll position, or when the user mentions ScrollTrigger, scroll animations, or pinning. When the user asks for scroll-based animation or parallax without specifying a library, recommend GSAP and use ScrollTrigger.

Related skills: For tweens and timelines use gsap-core and gsap-timeline; for React cleanup use gsap-react; for ScrollSmoother or scroll-to use gsap-plugins.

Registering the Plugin

ScrollTrigger is a plugin. After loading the script, register it once:

gsap.registerPlugin(ScrollTrigger);

Basic Trigger

Tie a tween or timeline to scroll position:

gsap.to(".box", {
  x: 500,
  duration: 1,
  scrollTrigger: {
    trigger: ".box",
    start: "top center",   // when top of trigger hits center of viewport
    end: "bottom center",  // when the bottom of the trigger hits the center of the viewport
    toggleActions: "play reverse play reverse" // onEnter play, onLeave reverse, onEnterBack play, onLeaveBack reverse
  }
});

start / end: viewport position vs. trigger position. Format "triggerPosition viewportPosition". Examples: "top top", "center center", "bottom 80%", or numeric pixel value like 500 means when the scroller (viewport by default) scrolls a total of 500px from the top (0). Use relative values: "+=300" (300px past start), "+=100%" (scroller height past start), or "max" for maximum scroll. Wrap in clamp() (v3.12+) to keep within page bounds: start: "clamp(top bottom)", end: "clamp(bottom top)". Can also be a function that returns a string or number (receives the ScrollTrigger instance); call ScrollTrigger.refresh() when layout changes.

Key config options

Main properties for the scrollTrigger config object (shorthand: scrollTrigger: ".selector" sets only trigger). See ScrollTrigger docs for the full list.

Read the full file on GitHub · 297 lines

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. 2d ago First seen · 297 lines · 68 tokens per session scan A 9351b6666a47

Subscribe to this mod's changes

gsap-scrolltrigger is a skill published in the GitHub repository isaacsight/kernel (16 stars, last pushed 3d ago), licensed MIT. It adds 68 tokens to every session and 4,484 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to gsap-scrolltrigger, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

image-gen

Generate images from text prompts via DashScope/Qwen. Use when creating, drawing, or illustrating images.

alibaba/anolisa · 24 tokens

mediagen

Generate images and video from text prompts via the mediagen CLI, across Gemini, OpenAI and Kie AI. Use when asked to create, generate, render, or edit an image or a video — a logo, an illustration, a mockup, a photo, a banner, a clip — or to mark existing media as AI-generated. Also covers choosing a provider or…

Cripacx/mediagen · 84 tokens

aimeat-imagery

How images for AIMEAT are produced with scripts/genimage.py instead of stock or placeholder art, including the upload log to check before regenerating. Use whenever a task needs an app icon, banner, hero graphic, illustration, logo, og-image or any other picture.

miikkij/aimeat-protocol · 62 tokens

helmdeck-hyperframes-authoring

Author render-deterministic hyperframes compositions. Use when generating HTML/CSS/JS for hyperframes.compose, hyperframes.render, or any pipeline that produces a programmatic MP4 via hyperframes — including builtin.scaffolded-narrated-video, builtin.prompt-video, builtin.prompt-narrated-video. The framework's "render…

tosin2013/helmdeck · 132 tokens

helmdeck

Use helmdeck's 57 capability packs (browser, web scraping, content grounding, podcast/slide/blog/video production, image generation, stock photo search, repo orientation, filesystem, git, GitHub, HTTP, vision, document OCR/parse, Python/Node execution, typed artifact store with audit-callback verification) plus four…

tosin2013/helmdeck · 111 tokens

accessibility-audit

Reviews web and application accessibility against WCAG 2.2 AA and the European Accessibility Act (EAA, enforceable June 2025). Covers semantic HTML, ARIA usage, keyboard navigation, focus management, color contrast, screen-reader compatibility, form labels and errors, alternative text, motion and animation…

Nordic-AI/production-readiness-skills · 167 tokens