aditya-deokar/gsap-motion-engineer/gsap-scrolltrigger
Claude Code and agent skill by aditya-deokar/gsap-motion-engineer
- community
Checking that the SKILL.md file is still in the repository.
Master GSAP ScrollTrigger skill — scroll-linked tweens, timelines, section pinning, scrubbed parallax, ScrollTrigger.batch for card grids, progress bars, horizontal scrolling, and mobile viewport resize handling. Use when building scroll-driven animations, pinned hero/product showcases, scrub effects, or parallax.
Install
npx vskill@latest install aditya-deokar/gsap-motion-engineer/gsap-scrolltriggerSKILL.md
The same SKILL.md was published earlier as aditya-deokar/gsap-motion-engineer/gsap-scrolltrigger.
GSAP ScrollTrigger Master Skill
When to Use This Skill
Apply this skill whenever creating or refining scroll-driven experiences:
- Triggering entrance animations when elements enter the viewport.
- Linking animations directly to scroll progress (
scrub: trueorscrub: 1). - Pinning sections while content scrubs or transitions horizontally.
- Staggering cards or grid items cleanly on scroll with
ScrollTrigger.batch(). - Building parallax backgrounds and multi-speed floating elements.
- Handling dynamic DOM changes, accordion expansions, and mobile browser address bar resizes.
⚡ Registration & Basic Setup
🎯 ScrollTrigger Core Syntax
1. Trigger with toggleActions
Used for one-off or reversible entrance animations. toggleActions: "onEnter onLeave onEnterBack onLeaveBack" (Options: play, pause, resume, reset, restart, complete, reverse, none)
2. Scrubbed Animation (Scroll-Linked Timeline)
Binds the animation progress directly to the user's scrollbar.
scrub: true: Locked 1:1 to scrollbar position.scrub: 1(Recommended): 1-second smooth physics interpolation (smooth catching up).
🚀 High-Performance Card Entrances with ScrollTrigger.batch()
Creating individual ScrollTriggers for 50+ cards creates DOM overhead. `ScrollTrigger.batch()` batches elements that enter the viewport simultaneously, playing a single stagger tween for maximum 60fps performance:
🌌 Multi-Speed Parallax Architecture
Achieve cinematic depth by moving background, midground, and foreground layers at varying rates:
HTML Usage:
📊 Global Scroll Progress Bar
CSS:
🔄 Refresh & Layout Shift Management
When content changes asynchronously (image loads, fonts load, accordions expand, API data fetches):
Dynamic Positioning with invalidateOnRefresh
If your tween values depend on responsive calculations:
🌊 Awwwards-Standard Momentum Scroll (Lenis + ScrollTrigger Sync)
Pairing ScrollTrigger with momentum smooth-scrolling eliminates jittery pins and choppy scrub timelines. Synchronize the render loop to prevent frame drops:
📱 Mobile Safari Address Bar Jumping Defense
On iOS and Android Safari/Chrome, the address bar retracts when scrolling, causing 100vh jumps.
- Use
ScrollTrigger.normalizeScroll(true)to prevent address bar jitter. - Avoid CSS
100vhon pinned containers; use100svhor100dvh. - Set
anticipatePin: 1on pinned sections to avoid slight visible delay before pinning kicks in.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gsap-scrolltrigger/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aditya-deokar/gsap-motion-engineer/gsap-scrolltrigger)