iotron/gsap-cookbook/gsap-optimise
Claude Code and agent skill by iotron/gsap-cookbook
- community
Checking that the SKILL.md file is still in the repository.
Production recipes for GSAP performance optimisation. Apply after building animations (gsap-animate) to audit and improve performance. Companion to official gsap-performance skill (API reference). Triggers: GSAP performance, animation optimise, animation slow, jank, 60fps, memory leak, tween cleanup, force3D, will-change, quickTo, quickSetter, overwrite, layout thrashing, GPU compositing, animation audit, gsap optimise, animation performance review. Non-triggers: Not for building new animations (use gsap-animate and sub-skills). Not for testing (use gsap-test). Apply this skill AFTER animations are built. Outcome: Audits and improves existing GSAP animations for 60fps — GPU acceleration, high-frequency tools, anti-patterns, and a component-level performance checklist.
Install
npx vskill@latest install iotron/gsap-cookbook/gsap-optimiseSKILL.md
The same SKILL.md was published earlier as iotron/gsap-cookbook/gsap-optimise.
GSAP Optimise — Performance Pass
Flow: gsap-setup → gsap-animate → gsap-optimise → gsap-testReferences: See gsap-performance skill for extended API details.
Companion: For general GSAP performance guidance, invoke gsap-performance. This skill covers optimisation recipes and audit checklists only. Requires:greensock/gsap-skills
1. GPU Acceleration
| force3D | Behaviour | Use when | |
|---|---|---|---|
"auto" | 3D during tween, 2D after | Default — usually best | |
true | Stay 3D permanently | Elements animated repeatedly | |
false | Always 2D | Upscaled images (avoids blur) |
2. will-change
CSS will-change: transform is fine for always-animating elements (scroll-driven, looping). For interactive/repeated animations, manage in JS:
3. High-Frequency Animations
See gsap-performance skill for quickTo, quickSetter, and piping API reference. Use the fastest tool that fits:
- Tweened cursor tracking →
gsap.quickTo() - Per-frame value piping →
gsap.quickSetter() - CSS custom properties → direct
style.setProperty()
4. Lazy Rendering
GSAP defers first-render writes to end of tick — avoids layout thrashing. Default lazy: true.
When multiple from()/fromTo() target the same property, set immediateRender: false on later ones.
5. Anti-Patterns
6. Performance Audit Checklist
GPU & Rendering
- [ ] Only transform/opacity animated (no left/top/width/height)
- [ ]
force3D: trueon repeatedly animated elements - [ ]
will-changemanaged: CSS for scroll-driven, JS for interactive - [ ]
autoAlphaused instead ofopacity
High-Frequency
- [ ]
overwrite: 'auto'on all rapid-fire tweens - [ ]
quickTo()for repeated animated updates - [ ]
quickSetter()for per-frame value piping
ScrollTrigger
- [ ]
ScrollTrigger.batch()for large grids (50+ elements) - [ ]
once: trueon one-shot triggers - [ ]
invalidateOnRefresh: trueon responsive layouts - [ ]
ScrollTrigger.refresh()after dynamic content
Cleanup
- [ ] All tweens inside
gsap.context()orctx.add() - [ ]
ctx.revert()inonUnmounted - [ ] Timelines created once and played/reversed
Accessibility
- [ ]
prefers-reduced-motionrespected viagsap.matchMedia() - [ ] Content visible without JavaScript
References
- See gsap-performance skill for extended API: quickTo, quickSetter, pipe, ScrollTrigger.batch, scrub tuning, matchMedia, registerEffect, ticker/lagSmoothing, autoAlpha, force3D, lazy rendering internals, context cleanup internals
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-optimise/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Oct 2026, a month ago.
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-optimise)