gsap-performance

Optimizes GSAP animations for smooth 60fps rendering using transforms and batching.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/TOBIASpuchito/Citec --skill gsap-performance-tobiaspuchito
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-performance
Source: https://github.com/TOBIASpuchito/Citec/tree/main/citec-frontend/.agents/skills/gsap-performance
Command: npx skills add https://github.com/TOBIASpuchito/Citec --skill gsap-performance-tobiaspuchito

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? GSAP animations can cause jank, dropped frames, and layout thrashing when developers animate layout-heavy properties or create excessive tweens. This Skill provides concrete guidance to keep animations on the compositor thread and maintain smooth 60fps rendering. ## Core Features & Use Cases - Compositor-Friendly Properties: Guides you to animate transform and opacity instead of width, height, top, or left to avoid layout and paint costs. - Efficient Update Patterns: Recommends gsap.quickTo() for frequently updated properties like mouse followers, and stagger instead of many separate tweens. - ScrollTrigger Tuning: Covers pin promotion, scrub values, and debounced ScrollTrigger.refresh() calls to reduce scroll-related work. - Use Case: When a user reports a laggy scroll-driven animation or a janky mouse-follower effect, apply these rules to refactor tweens onto transforms, batch updates, and clean up off-screen animations. ## Quick Start Ask the AI to review your GSAP animation code for performance issues and refactor it to use transforms, quickTo, and proper ScrollTrigger cleanup.

Frequently Asked Questions about gsap-performance

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

FAQPage Schema
How do I make GSAP animations run at 60fps?▼

Animate transform properties (x, y, scale, rotation) and opacity, which stay on the compositor and avoid layout and paint. Avoid animating width, height, top, left, margin, or padding, since these trigger layout and cause jank.

How to optimize GSAP mouse follower animations?▼

Use gsap.quickTo() for frequently updated properties like mouse-follower x and y positions. It reuses a single tween instead of creating a new tween on every mousemove event, reducing overhead.

Should I use will-change on all animated elements?▼

No, apply will-change: transform only in CSS on elements that will actually animate. Setting it on every element wastes memory and compositor resources without benefit.

When should I call ScrollTrigger.refresh()?▼

Call ScrollTrigger.refresh() only when the layout actually changes, such as after content loads, not on every resize. Debounce the call when possible to avoid repeated recalculation work.

Why does my GSAP animation lag with many elements?▼

Hundreds of simultaneous tweens or ScrollTriggers can overwhelm low-end devices. Use stagger instead of separate tweens, virtualize long lists, animate only visible items, and kill off-screen animations.