G

gsap-scrolltrigger

by greensock

gsap-scrolltrigger is the official GSAP skill for scroll-linked animations, pinning, scrub behavior, and viewport-based triggers. Use it for Frontend Development when you need a gsap-scrolltrigger guide, install help, or practical gsap-scrolltrigger usage for parallax, pinned sections, and scroll-driven motion.

Stars3.2k
Favorites0
Comments0
AddedMay 9, 2026
CategoryFrontend Development
Install Command
npx skills add greensock/gsap-skills --skill gsap-scrolltrigger
Curation Score

This skill scores 78/100, which is a solid listing candidate for Agent Skills Finder. Directory users can reasonably install it if they need ScrollTrigger-specific scroll animations, because it gives explicit triggers, practical examples, and usage constraints that reduce guesswork versus a generic prompt. It is not a perfect plug-and-play workflow package, but it is clearly actionable and worth listing with minor caveats.

78/100
Strengths
  • Explicit trigger guidance for scroll-driven animation, pinning, scrubbing, and ScrollTrigger use cases
  • Substantial SKILL.md content with multiple headings and code examples that help an agent execute without starting from scratch
  • Clear related-skill pointers (gsap-core, gsap-timeline, gsap-react, gsap-plugins) that improve routing and reduce misuse
Cautions
  • No install command or companion support files, so users must already know how to load and register the plugin
  • Evidence shows strong usage guidance but limited auxiliary references/resources for deeper edge-case handling
Overview

Overview of gsap-scrolltrigger skill

What gsap-scrolltrigger does

The gsap-scrolltrigger skill helps you build scroll-linked animations with GSAP’s ScrollTrigger plugin: start and stop animation on scroll, pin sections, scrub progress to the scrollbar, and trigger effects at precise viewport positions. It is the right fit when the job is not “make something animate,” but “make animation respond to scrolling in a controlled way.”

Who should use it

Use the gsap-scrolltrigger skill for Frontend Development when you need marketing pages, editorial layouts, long-form storytelling, product demos, or parallax-style motion that depends on scroll position. If the user only wants a generic animation prompt, this skill adds more value when scroll behavior, timing, or pinning matters.

Why this skill is different

The main differentiator is practical scroll control: start, end, scrub, pin, and toggle behavior give you predictable results that are hard to express well with a plain prompt. The gsap-scrolltrigger guide is also useful when you want GSAP-specific recommendations instead of a library-agnostic animation answer.

How to Use gsap-scrolltrigger skill

Install and load it correctly

Run the skill install with npx skills add greensock/gsap-skills --skill gsap-scrolltrigger. In implementation terms, load GSAP and the ScrollTrigger plugin, then register once with gsap.registerPlugin(ScrollTrigger);. If the skill is being used in an AI workflow, make sure the prompt asks for ScrollTrigger-specific output, not generic CSS animation advice.

Give the skill the right input

The best gsap-scrolltrigger usage starts with a concrete scroll story: what element should animate, what should happen on enter, whether the animation should scrub with scroll, whether the section should pin, and what should happen when the user scrolls back. A strong prompt is specific, such as: “Create a pinned hero section where the headline fades and the image scales from 0.9 to 1.1 as the section scrolls from top center to bottom center.”

Read the repository files first

Start with SKILL.md, then inspect the full file tree for any linked examples or implementation notes. For this repository, the main value is in the core guidance itself: when to use the plugin, how to register it, and the example trigger configuration. If you are adapting the pattern into another codebase, map the trigger settings to your framework’s lifecycle and DOM access rules.

Use the pattern, not just the snippet

The useful part of the gsap-scrolltrigger install and usage flow is understanding the configuration logic, not copying code blindly. Preserve the relationships between trigger element, viewport points, and action behavior. For production output, ask for accessibility checks, reduced-motion fallbacks, and a fallback layout if pinning changes page flow.

gsap-scrolltrigger skill FAQ

Is gsap-scrolltrigger only for advanced animation work?

No. It is useful for beginner-friendly scroll effects too, as long as the effect depends on scroll position. The main learning curve is understanding how trigger, start, end, and scrub work together.

When should I not use this skill?

Do not use gsap-scrolltrigger if the requirement is a simple entrance animation that does not depend on scrolling, or if the project already standardizes on another motion library. It is also a poor fit when the page must stay fully functional without JavaScript-driven scroll logic.

How does it compare with a normal prompt?

A normal prompt may describe the visual goal but miss the implementation details that make ScrollTrigger reliable. The gsap-scrolltrigger skill is better when you need concrete scroll behavior, cleaner terminology, and fewer guesses about how to wire the effect.

Does it fit React, Vue, or plain JavaScript?

Yes, but the integration details differ. The skill is strongest when you already know the target stack and can tell the model whether it should produce plain JS, component-based code, or framework-safe lifecycle handling.

How to Improve gsap-scrolltrigger skill

Specify the scroll contract

The biggest quality boost comes from defining the scroll contract: what starts the animation, what ends it, whether it should scrub, and whether it should pin. Instead of saying “make a cool parallax section,” say “pin the section for one viewport, scrub the image upward, and fade the caption in after the image crosses center.”

Describe layout constraints up front

Mention sticky headers, dynamic content height, mobile breakpoints, and whether the section must avoid layout jumps. These details change the gsap-scrolltrigger guide output more than the visual style does, because ScrollTrigger behavior depends on actual page geometry.

Ask for implementation details that prevent rework

Request the code to include cleanup, refresh timing, and reduced-motion handling when relevant. Common failure modes are using the wrong trigger element, overusing scrub on small content blocks, or forgetting that pinning can change document flow. Stronger input reduces those mistakes and makes the first output closer to shippable.

Iterate with a real content example

After the first pass, provide actual section names, copy length, and image dimensions so the animation can be tuned to the content. The most useful gsap-scrolltrigger for Frontend Development outputs are usually revised once against real markup, because trigger timing and pin duration depend on the final DOM, not just the idea.

Ratings & Reviews

No ratings yet
Share your review
Sign in to leave a rating and comment for this skill.
G
0/10000
Latest reviews
Saving...