gsap-performance

Analyze and optimize GSAP animations to reduce jank and layout thrashing.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/yequdesu/Main-Page --skill gsap-performance-yequdesu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-performance
Source: https://github.com/yequdesu/Main-Page/tree/main/.pi/skills/gsap-performance
Command: npx skills add https://github.com/yequdesu/Main-Page --skill gsap-performance-yequdesu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires GSAP, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses performance issues in GSAP animations, helping to avoid jank and layout thrashing, and ensures smooth 60fps experiences.

Core Features & Use Cases

  • Transform and Opacity: Encourages using transform and opacity for animations instead of layout properties to maintain compositor performance.
  • will-change: Guides on when and how to use CSS will-change to optimize rendering.
  • Batching: Recommends batching reads and writes to reduce layout thrashing.
  • Staggering and Virtualization: Optimizes performance for multiple elements by using stagger and virtualization techniques.
  • ScrollTrigger: Offers performance best practices for ScrollTrigger, including pinning, scrubbing, and refresh.

Quick Start

Use the gsap-performance skill to analyze and optimize the performance of a GSAP animation on your website.

Frequently Asked Questions about gsap-performance

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

FAQPage Schema
How do I fix GSAP animation jank and layout thrashing?

Fix GSAP animation jank by animating transform and opacity instead of layout properties, batching DOM reads and writes, and applying will-change to maintain compositor performance and achieve smooth 60fps.

Why does my GSAP ScrollTrigger animation stutter on scroll?

GSAP ScrollTrigger stutters when pinning, scrubbing, or refresh operations overload the main thread. Optimize by minimizing layout recalculations, using transform-based animations, and managing refresh events efficiently.

When should I use will-change for web animation performance?

Use will-change for web animation performance when an element is about to be animated, applying it strategically to compositor properties like transform and opacity to optimize rendering and prevent frame drops.

What is the best way to optimize GSAP animations for multiple elements?

Optimize GSAP animations for multiple elements by using stagger techniques to sequence animations efficiently and implementing virtualization to limit the number of elements actively rendered on the screen.

Does GSAP require specific properties to maintain a 60fps frame rate?

GSAP maintains a 60fps frame rate by relying on compositor-friendly properties like transform and opacity. Avoid animating layout properties such as width or top to prevent layout thrashing and rendering bottlenecks.

Can I use batched DOM reads and writes to reduce layout thrashing in web animations?

Batch DOM reads and writes to reduce layout thrashing in web animations by grouping all measurement queries before applying style mutations, preventing the browser from forcing synchronous recalculations during GSAP updates.