gsap-scrolltrigger

Creates scroll-driven animations and effects with GSAP's ScrollTrigger plugin.

3|2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/woxiangyangzhimao/skills --skill gsap-scrolltrigger-woxiangyangzhimao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/woxiangyangzhimao/skills/tree/main/gsap-scrolltrigger
Command: npx skills add https://github.com/woxiangyangzhimao/skills --skill gsap-scrolltrigger-woxiangyangzhimao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill allows you to create sophisticated scroll-based animations and parallax effects, improving user engagement and the visual appeal of web pages.

Core Features & Use Cases

  • Scroll Triggered Animations: Animate elements based on the scroll position of the page.
  • Pinning: Keep elements in place while scrolling.
  • Scrubbing: Adjust animation timing during scroll.
  • Parallax: Create depth effects by moving elements at different speeds during scrolling.
  • Use Case: Use this Skill to create a dynamic and engaging homepage with elements that animate or move based on the user's scroll behavior.

Quick Start

To create a simple scrolling animation, add the following script to your HTML file:

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/ScrollTrigger.min.js"></script>
<script>
  gsap.registerPlugin(ScrollTrigger);
  gsap.to('.element', {
    scrollTrigger: {
      trigger: '.element',
      start: 'top center',
      end: 'bottom center',
      scrub: true
    }
  });
</script>

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-driven animations on my web page?

You can create scroll-driven animations by using the GSAP ScrollTrigger plugin to animate elements based on the scroll position of the page. This approach enhances user engagement through dynamic page interactions.

What is the best way to pin elements while scrolling in web design?

Pinning elements while scrolling is achieved using GSAP ScrollTrigger. It allows you to keep specific web page elements in place while the user scrolls past them, creating sophisticated parallax depth effects.

Can I adjust scrolling animation timing dynamically during scroll?

Yes, you can adjust scrolling animation timing dynamically using the scrubbing feature in GSAP ScrollTrigger. Scrubbing links animation progress directly to the scroll position for smooth, responsive interactions.

Do I need GSAP to execute ScrollTrigger animations?

Yes, you need the GSAP library installed to execute ScrollTrigger animations. ScrollTrigger is a plugin that requires GSAP to function and control scroll-based animations on your web page.

How does a parallax effect work with scrolling animations?

A parallax effect works by moving web page elements at different speeds during scrolling. GSAP ScrollTrigger controls this movement to create depth effects, improving the visual appeal of the page.