gsap-performance

Guide GSAP animation refactoring to use transforms and opacity for smoother performance.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/0monish/portfolio-vivek-kamani --skill gsap-performance-0monish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-performance
Source: https://github.com/0monish/portfolio-vivek-kamani/tree/main/.agents/skills/gsap-performance
Command: npx skills add https://github.com/0monish/portfolio-vivek-kamani --skill gsap-performance-0monish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers deliver smooth GSAP animations by prioritizing transforms, reducing layout thrashing, and applying will-change and batching techniques to minimize repaint work.

Core Features & Use Cases

  • Prefer transform and opacity animations to keep work on the compositor.
  • Use will-change for elements that animate, and batch reads and writes to avoid layout thrashing.
  • Leverage ScrollTrigger performance guidelines and timeline optimizations for complex scenes.
  • Use Case: a data dashboard with multiple charts that update on scroll without dropping frames.

Quick Start

Apply these practices by refactoring existing animations to use transforms and opacity first.

Frequently Asked Questions about gsap-performance

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

FAQPage Schema
Why is my GSAP animation dropping frames and causing layout thrashing?

GSAP animation drops frames due to layout thrashing when animating non-compositor properties. Fix this by prioritizing transform and opacity animations, batching DOM reads and writes, and applying will-change to keep work off the main thread.

How do I optimize ScrollTrigger performance for complex scenes?

Optimize ScrollTrigger performance by following timeline best practices and minimizing repaint work. Use transform-based animations to keep execution on the compositor and apply will-change to elements updating on scroll without dropping frames.

What is the best way to animate elements in GSAP without impacting FPS?

The best way to maintain FPS in GSAP is using transform and opacity properties first. This approach shifts animation work to the compositor, avoiding expensive recalculations and reducing layout thrashing in interactive interfaces.

When do I need will-change for GSAP timeline optimizations?

Apply will-change for GSAP elements actively animating within complex timelines. It hints the browser to prepare for transformations, minimizing repaint work and preventing frame rate drops during heavy interactive interface updates.

Does animating transform and opacity properties work for data dashboards?

Yes, using transform and opacity properties works effectively for data dashboards. By batching DOM reads and writes, you can update multiple charts on scroll without dropping frames or causing severe layout thrashing.