gsap-performance

Optimize GSAP animations to 60fps by prioritizing transforms and reducing layout thrashing.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimizes GSAP animations to achieve smooth 60fps by prioritizing transforms and avoiding layout thrash.

Core Features & Use Cases

  • Prefer transform and opacity to keep work on the compositor and reduce layout and paint costs.
  • Batch reads and writes to minimize reflows, and use gsap.quickTo() for frequently updated properties.
  • Use ScrollTrigger intelligently and avoid animating layout-heavy properties; enable will-change as needed.

Quick Start

Audit your GSAP animations and replace layout-affecting properties with transforms and opacity, enable will-change where appropriate, and batch reads and writes to reduce reflows.

Frequently Asked Questions about gsap-performance

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

FAQPage Schema
How do I optimize GSAP animations to maintain 60fps during heavy DOM scrolling?

Optimize GSAP animations by prioritizing transform and opacity over layout properties to reduce paint costs, batching reads and writes to minimize reflows, and leveraging ScrollTrigger to maintain smooth 60fps performance.

Why does my GSAP animation cause layout thrashing and jank?

GSAP animations cause layout thrashing and jank when animating layout-heavy properties instead of transforms. Batch DOM reads and writes, use gsap.quickTo() for frequent updates, and prefer transform and opacity to avoid reflows.

What is the best way to use will-change with GSAP for web performance?

The best way to use will-change with GSAP is to enable it appropriately on elements undergoing heavy animation. This hints the browser to optimize rendering, reducing paint costs and maintaining smooth 60fps performance.

Can I use ScrollTrigger for complex timelines without dropping frames?

Yes, you can use ScrollTrigger for complex timelines without dropping frames by avoiding layout-heavy properties, applying will-change as needed, and prioritizing transforms and opacity to minimize jank under stress.

When should I use gsap.quickTo() instead of standard GSAP tweens?

You should use gsap.quickTo() instead of standard GSAP tweens for frequently updated properties. It batches reads and writes efficiently, minimizing reflows and ensuring smooth performance during continuous interactions.

Does animating opacity and transform in GSAP improve web interface performance?

Animating opacity and transform in GSAP directly improves web interface performance by keeping rendering work on the compositor thread. This avoids expensive layout and paint costs, preventing jank and maintaining 60fps.