aditya-deokar/gsap-motion-engineer/gsap-performance
Claude Code and agent skill by aditya-deokar/gsap-motion-engineer
- community
Checking that the SKILL.md file is still in the repository.
High-performance 60fps GSAP engineering — compositor vs layout properties, GPU hardware acceleration, will-change, CSS layer containment, memory leak prevention, and real-time FPS monitoring harness. Use when optimizing animations for smooth 60fps, eliminating jank, reducing mobile battery consumption, or profiling performance.
Install
npx vskill@latest install aditya-deokar/gsap-motion-engineer/gsap-performanceSKILL.md
The same SKILL.md was published earlier as aditya-deokar/gsap-motion-engineer/gsap-performance.
GSAP Performance & 60FPS Engineering
When to Use This Skill
Apply this skill whenever:
- Ensuring all animations run at a locked 60fps (frame time < 16.67ms).
- Refactoring animations that suffer from stutter, lag, or dropped frames.
- Optimizing animations for mobile devices and battery efficiency.
- Auditing memory usage to prevent memory leaks and GC (Garbage Collection) pauses.
- Embedding an FPS and frame-budget monitoring tool into your app during development.
🏎️ The 16.67ms Frame Budget Rule
Modern displays refresh at 60Hz (or 120Hz on ProMotion displays). For 60fps motion, the browser has exactly 16.67 milliseconds to calculate JavaScript, run layout, paint pixels, and composite layers:
Rule: Animate ONLY properties that skip Layout and Paint, resolving directly on the GPU compositor thread:
- Compositor Properties:
transform(x,y,scale,rotation,skew),opacity.
🔄 Layout to Transform Refactoring Dictionary
Always replace layout-triggering CSS properties with composite equivalents:
| Naive / Slow Property | 60FPS GPU Composite Replacement | Rationale | |
|---|---|---|---|
left: 100px | x: 100 | Avoids reflow; operates purely on GPU matrix transform. | |
top: 50px | y: 50 | Avoids reflow; subpixel rendering precision. | |
width: 300px | scaleX: 1.5 or xPercent | Avoids recalculating sibling element geometries. | |
height: 200px | scaleY: 1.5 | Avoids vertical document reflow. | |
opacity: 0 | autoAlpha: 0 | Automatically sets visibility: hidden, freeing GPU layers. | |
margin-left: 20px | x: 20 | Zero layout impact on surrounding flow. |
⚡ GPU Acceleration Configuration
1. Enable force3D: true
Forces the browser to allocate a dedicated GPU compositor layer for the element:
2. Critical CSS Layer Hints
[!WARNING]Do NOT applywill-change: transformto thousands of elements simultaneously, as this consumes excessive VRAM. Apply it only to actively animating elements, and remove it on complete usingclearProps: "will-change".
🧹 Memory Leak Prevention & Garbage Collection
Repeatedly creating animations in loops without cleaning them up exhausts browser memory:
📱 Mobile-Smooth & Battery-Efficient Mode
Mobile CPUs throttle rapidly under heavy JavaScript animations. When targeting mobile devices:
📈 Real-Time FPS & Frame Budget Monitor
Embed this lightweight diagnostic FPS meter to profile motion in real time during development:
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-performance/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-performance)