gsap-performance

Optimize GSAP animations by batching updates and using transform and opacity.

Updated May 23, 2026
One-click install
npx skills add https://github.com/xingBaGan/FANovelist --skill gsap-performance-xingbagan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-performance
Source: https://github.com/xingBaGan/FANovelist/tree/main/src/openharness/openmontage/agents_skills/gsap-performance
Command: npx skills add https://github.com/xingBaGan/FANovelist --skill gsap-performance-xingbagan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps optimize GSAP animations to ensure they run smoothly at 60fps, reduce layout thrashing, and minimize jank, especially for users asking about animation performance and best practices.

Core Features & Use Cases

  • Performance Optimization: Focuses on reducing jank by preferencing transform and opacity animations, using will-change for animate elements, and avoiding layout-heavy properties.
  • Batch Updates: Utilizes GSAP's internal batching to minimize layout and paint costs during animation updates.
  • Stagger and Virtualization: Efficiently handles multiple animations with stagger and virtualization for large lists, maintaining performance.
  • Quick Tweens for Frequent Updates: Provides efficient tweens for frequently updated properties like mouse followers, preventing unnecessary creation of new tweens.

Quick Start

Analyze and optimize the performance of a GSAP animation by using the gsap-performance skill, and applying it to an element in your project.

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 run smoothly at 60fps?

To optimize GSAP animations for 60fps, you should animate transform and opacity properties, apply CSS will-change to animated elements, and batch animation updates to reduce layout thrashing and minimize visual jank.

Why does my GSAP animation cause layout thrashing and jank?

GSAP animation causes layout thrashing and jank when animating layout-heavy CSS properties instead of transforms; you can prevent this by using GSAP's internal update batching and focusing strictly on transform and opacity tweens.

What is the best way to handle staggered animations in large lists without dropping frames?

The best way to handle staggered animations in large lists is utilizing GSAP's stagger features combined with virtualization techniques, which efficiently manage multiple animations to maintain smooth performance without dropping frames.

How do I optimize mouse follower animations to prevent performance issues?

To optimize mouse follower animations, use quick tweens for frequently updated properties to prevent the unnecessary creation of new tween instances, thereby stopping performance bottlenecks during rapid mouse movement updates.

When should I use CSS will-change promotion for web animation optimization?

You should use CSS will-change promotion for web animation optimization when preparing elements for transform or opacity animations, as it hints the browser to optimize rendering layers in advance and reduces paint costs during the animation.