gsap-scrolltrigger

Implement GSAP ScrollTrigger for scroll-linked animations, pinning, scrubbing, and custom triggers.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/HardyLiu6/youth-memory --skill gsap-scrolltrigger-hardyliu6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/HardyLiu6/youth-memory/tree/main/.codebuddy/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/HardyLiu6/youth-memory --skill gsap-scrolltrigger-hardyliu6

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap, and includes scripts (resource) components.

What problem does it solve?

This Skill helps to create scroll-linked animations, pinning, scrubbing, and triggers, solving the need for scroll-based animations, parallax effects, pinned sections, and providing a reference for GSAP's ScrollTrigger.

Core Features & Use Cases

  • Scroll-Linked Animations: Trigger tweens and timelines based on scroll position.
  • Pinning: Keep elements in place while scrolling.
  • Scrubbing: Navigate through animations by scrolling.
  • Triggers: Define custom triggers for animations.
  • Use Case: When you need to create a website with engaging scroll-based animations, such as a portfolio or a landing page with interactive elements.

Quick Start

Use the gsap-scrolltrigger skill to create a simple scroll-linked animation that moves a box on the screen as you scroll.

Frequently Asked Questions about gsap-scrolltrigger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create scroll-linked animations with GSAP ScrollTrigger?

Scroll-linked animations trigger GSAP tweens and timelines based on scroll position. This Skill implements ScrollTrigger to bind animations to scroll progress, enabling dynamic effects like moving elements as the user scrolls a web page.

Can I pin elements in place while scrolling using GSAP?

Pinning keeps elements fixed in place while the user continues scrolling. This Skill uses GSAP ScrollTrigger to pin sections, allowing you to build engaging landing pages and interactive portfolio sections where content stays anchored during scroll.

How does scrubbing work with GSAP scroll animations?

Scrubbing navigates through animations by scrolling, binding animation progress directly to scroll position. This Skill configures GSAP ScrollTrigger scrubbing so that scrolling forward and backward seamlessly controls the animation timeline playback.

Do I need GSAP installed to use ScrollTrigger for web animations?

Yes, you need GSAP installed as a dependency. This Skill requires GSAP for animation capabilities and utilizes JavaScript for DOM manipulation to implement ScrollTrigger features like custom triggers and pinning on your website.

What's the best way to add parallax effects to a website with JavaScript?

Using GSAP ScrollTrigger is an effective way to create parallax effects. This Skill defines custom triggers and scroll-linked animations, solving the need for scroll-based interactions and dynamic visual effects in web development.

When should I use GSAP ScrollTrigger for web animations?

You should use GSAP ScrollTrigger when building a website with engaging scroll-based animations, such as a portfolio or a landing page. It is ideal for creating interactive user experiences that require pinning, scrubbing, and custom scroll triggers.