gsap-performance

Optimize GSAP animations to maintain 60fps by minimizing layout and paint overhead.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/ScarletFish/MyAnimeDock --skill gsap-performance-scarletfish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-performance
Source: https://github.com/ScarletFish/MyAnimeDock/tree/main/.agents/skills/gsap-performance
Command: npx skills add https://github.com/ScarletFish/MyAnimeDock --skill gsap-performance-scarletfish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses animation jank and performance bottlenecks by providing best practices for high-performance web animations, ensuring smooth rendering even on low-end devices.

Core Features & Use Cases

  • Performance Optimization: Guidance on prioritizing transform and opacity properties to avoid layout thrashing and heavy paint cycles.
  • Efficient Execution: Techniques for batching updates, using stagger for lists, and implementing gsap.quickTo for high-frequency updates like mouse followers.
  • Use Case: When building complex interactive dashboards or long-scrolling pages, use this skill to ensure animations remain fluid and responsive by offloading work to the compositor.

Quick Start

Use the gsap-performance skill to audit my current animation code and suggest optimizations for better frame rates.

Frequently Asked Questions about gsap-performance

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

FAQPage Schema
Why does my GSAP animation jank and drop below 60fps?

GSAP animation jank typically occurs when animating properties that trigger layout thrashing and heavy paint cycles. Prioritizing transform and opacity properties offloads work to the compositor, ensuring smooth rendering even on low-end devices.

How do I optimize high-frequency GSAP updates for a mouse follower?

To optimize high-frequency GSAP updates, use gsap.quickTo for mouse followers. This technique batches updates efficiently, minimizing layout and paint overhead while maintaining a consistent 60fps frame rate during rapid DOM interactions.

What's the best way to prevent layout thrashing in scroll-triggered animations?

Prevent layout thrashing in scroll-triggered animations by adhering to transform-based animation patterns. Animating transforms and opacity instead of width or margin avoids heavy paint cycles and maintains smooth 60fps rendering.

Can I use GSAP performance techniques for complex interactive dashboards?

Yes, these performance techniques apply directly to complex interactive dashboards. By batching updates and using stagger for lists, you ensure animations remain fluid and responsive while offloading rendering work to the compositor.

How do I audit existing web animation code for rendering bottlenecks?

Audit existing web animation code by checking if animations prioritize transform and opacity properties. Identify high-frequency DOM updates and replace them with gsap.quickTo to minimize layout and paint overhead for better frame rates.

When should I not animate width or margin properties in GSAP?

You should avoid animating width or margin properties in GSAP when smooth 60fps is required. Animating these properties causes layout recalculation and heavy paint cycles, whereas transform-based patterns avoid this overhead entirely.