gsap-scrolltrigger

Create scroll-driven web animations using GSAP and the ScrollTrigger plugin.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill gsap-scrolltrigger-sixscripts-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-scrolltrigger
Source: https://github.com/sixscripts-ai/agent-arena-voice/tree/main/.claude/plugins/claudedesignskills/plugins/bundles/core-3d-animation/skills/gsap-scrolltrigger
Command: npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill gsap-scrolltrigger-sixscripts-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building smooth, performant scroll-driven animations and sequenced web animations requires deep knowledge of GSAP's API, ScrollTrigger configuration, and common pitfalls like conflicting tweens and stale trigger positions. ## Core Features & Use Cases - Scroll-Driven Animations: Implement scrubbing, pinning, parallax effects, horizontal scroll sections, and snap points with ScrollTrigger. - Timeline Sequencing: Orchestrate complex multi-step animations with labels, position parameters, and stagger configurations. - Framework Integration: Apply GSAP within React (useGSAP), Three.js/WebGL scenes, and Locomotive Scroll smooth-scrolling setups. - Use Case: Build a scrollytelling landing page where a pinned hero section plays a scrubbed timeline, followed by staggered card reveals and a parallax background. ## Quick Start Ask the AI to create a GSAP ScrollTrigger animation that fades in elements on scroll and pins a section while scrubbing a timeline.

Frequently Asked Questions about gsap-scrolltrigger

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

FAQPage Schema
How do I create a scroll-triggered animation with GSAP ScrollTrigger?▼

Register the ScrollTrigger plugin with gsap.registerPlugin(ScrollTrigger), then add a scrollTrigger object to any tween defining trigger element, start and end positions, and scrub or toggleActions. Use markers: true during development to visualize trigger positions.

How to pin an element while scrolling with GSAP?▼

Set pin: true inside the ScrollTrigger configuration along with start and end positions such as start: 'top top' and end: '+=500'. Use pinSpacing to control whether extra space is added, and anticipatePin: 1 for smoother pinning behavior.

Does GSAP ScrollTrigger work with React?▼

Yes, GSAP works with React through the useGSAP hook from @gsap/react, which handles scoping and cleanup automatically. Register ScrollTrigger, wrap animations inside useGSAP with a container ref scope, and kill tweens on unmount.

Why is my GSAP ScrollTrigger animation jumping or conflicting?▼

Conflicts occur when multiple tweens animate the same property on one element. Fix this by using fromTo, setting immediateRender: false, or placing the tweens inside a single timeline with one ScrollTrigger attached to the timeline rather than individual tweens.

Can GSAP animate Three.js or WebGL objects on scroll?▼

Yes, GSAP can tween any JavaScript object property, including Three.js camera positions, mesh rotations, and material opacity. Attach a ScrollTrigger with scrub to link those property changes to scroll position and call lookAt or render in onUpdate.

When should I not use scrub in ScrollTrigger?▼

Avoid scrub when you want a one-time entrance animation independent of scroll speed; use toggleActions like 'play none none none' with once: true instead. Scrub is best for parallax, horizontal scroll, and scroll-synced storytelling.