Skip to content
SkillModel-led4,365 tokens in use

GSAP ScrollTrigger

Build scroll-linked animation with GSAP ScrollTrigger: scrub, pinning, batching and horizontal scroll.

18,822 stars on the repository MIT Licensegreensock/gsap-skills · skills/gsap-scrolltrigger
npx skills add https://github.com/greensock/gsap-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing GSAP ScrollTrigger costs

68tokens idle
4,365tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure19/25
  • Examples15/15
  • Output10/15
  • Size11/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Needs attention
  • Development activity12
  • Maintenance0
  • Community52
  • Maturity32
  • Momentum40

GSAP ScrollTrigger is the official GreenSock skill for scroll-driven animation. It covers registering the plugin, basic triggers, config options, scrub, pinning, ScrollTrigger.batch, scrollerProxy, markers, timelines driven by scroll, horizontal scroll with containerAnimation, and refresh and cleanup.

It ends with GreenSock best practices and a Do Not list.

What You Get

  • Registration and basic trigger examples
  • Sections on scrub, pinning, batch and scrollerProxy
  • Refresh and cleanup rules with a Do Not list

Common Use Cases

  • Building parallax and reveal effects
  • Pinning a section while it animates
  • Creating horizontal scrolling sections

What Makes It Unique

It is written by the maintainers and goes past basic triggers to the cases that cause trouble, such as refresh timing, cleanup and scrolling inside a custom container.

Under The Hood

The skill is a single SKILL.md with no scripts. It guides the assistant to write scroll animation code in your project. It runs no commands and reaches no network.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers