iotron/gsap-cookbook/gsap-scroll
Claude Code and agent skill by iotron/gsap-cookbook
- community
Checking that the SKILL.md file is still in the repository.
Production recipes for scroll-based GSAP animations. Companion to official gsap-scrolltrigger skill (API reference). Triggers: ScrollTrigger, scroll animation, scroll reveal, parallax, sticky cards, stacking cards, scrub, pin section, batch reveal, masonry reveal, scroll progress, timeline scrub, elastic type, section switching, ScrollTrigger.batch, ScrollTrigger.create, scroll refresh, scroll cleanup, GSAP scroll, Vue scroll animation, Nuxt scroll animation. Non-triggers: Not for mouse-driven interactions (use gsap-interact), text effects (use gsap-text), SVG path drawing (use gsap-svg), or visual effects (use gsap-vfx). Outcome: Produces scroll-triggered animations — reveals, batch staggers, parallax layers, pinned sections, and scrubbed timelines.
Install
npx vskill@latest install iotron/gsap-cookbook/gsap-scrollSKILL.md
The same SKILL.md was published earlier as iotron/gsap-cookbook/gsap-scroll.
GSAP Scroll — ScrollTrigger Patterns
Flow: gsap-setup → gsap-animate → gsap-scroll → gsap-optimise → gsap-testCross-reference gsap-animate for context/cleanup, gsap-optimise for batch/scrub tuning.
Companion: For ScrollTrigger API reference, invoke gsap-scrolltrigger. This skill covers scroll animation recipes only. Requires:greensock/gsap-skills
1. Basic Scroll Reveal
autoAlphanotopacity— setsvisibility: hiddenat 0toggleActions: 'play none none reverse'— plays on enter, reverses on leave-back
2. ScrollTrigger.batch() — Masonry/Grid Reveal
overwrite: 'auto'prevents conflicting tweens on fast scroll- Functional
rotationre-evaluates per element for organic randomness
3. Parallax Layers
yPercentnoty— percentage-based, scales with element sizescrub: 0.5— smoother thanscrub: true, 0.5s catch-up
4. Refresh Patterns
Advanced Patterns
See references/scroll-patterns.md for:
- Stacking Cards — CSS sticky + scrubbed two-phase timeline with will-change lifecycle
- Scrubbed Timeline — progress bar, bouncing dots, alternating card reveals
- Elastic Type Assembly — pin + scrub three-phase scatter/assemble/scatter
- Service Section Switching — ScrollTrigger.create() with activate/deactivate callbacks
- Velocity Skew — skewY transforms driven by ScrollTrigger.getVelocity() + gsap.quickSetter
- Infinite Looped Panels — pinSpacing: false stacking with seamless scroll boundary looping
- Directionally Aware Header — show/hide fixed header based on scroll direction
- Pinned Panels with Overscroll — slide-based pinning with fake-scroll for tall panels + scale/fade exit
- Image Mask On Scroll — before/after image reveal using counter-translating containers
- Lateral Pin Indicator — pinned section with side nav indicator + crossfading slide content
- Horizontal Scrolling Gallery — horizontal scroll via pin + scrub with xPercent translation
Rules
- Wrap all ScrollTrigger tweens in
gsap.context()scoped to a ref - Use
autoAlphanotopacityfor reveals - Include
invalidateOnRefresh: truewhen animating positional values - Use
overwrite: 'auto'ortruewhen elements can be re-triggered - Manage
will-changelifecycle in ST callbacks (set on enter, release on leave) - Call
ScrollTrigger.refresh()after DOM changes that affect document height - Prefer
scrub: 0.5overscrub: truefor smoother motion
Security
- Security scanPassed, 95 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-scroll/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/iotron/gsap-cookbook/gsap-scroll)