Agent skill

GSAP Performance Skill: Smooth 60fps Rules for AI Agents

The gsap-performance skill teaches an AI coding agent to keep GSAP animation smooth: transforms over layout properties, careful will-change, quickTo for mouse followers and tidy cleanup.

Install
git clone https://github.com/greensock/gsap-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the gsap-performance skill?

gsap-performance is an official SKILL.md in the greensock/gsap-skills repository. It teaches an AI coding agent to keep GSAP animation smooth by animating transforms and opacity, using will-change sparingly, preferring stagger and quickTo, limiting simultaneous tweens, and cleaning up off-screen animations and ScrollTriggers.

gsap-performance is the shortest skill in the official greensock/gsap-skills set. Its SKILL.md applies when an agent optimizes GSAP animation for smooth 60fps, reduces layout and paint cost, or answers a question about jank.

It builds on gsap-core for transforms and autoAlpha, and on gsap-timeline for sequencing. ScrollTrigger tuning is shared with gsap-scrolltrigger.

What changes in your agent's output

  • Movement animates x, y, scale, rotation and opacity instead of width, height, top, left, margin or padding.
  • will-change: transform appears only on elements that really animate, not on everything just in case.
  • Repeated animation of the same kind uses stagger rather than many tweens with manual delays.
  • Mouse followers use gsap.quickTo(), which reuses one tween instead of creating a new tween on every mousemove.
  • Off-screen or inactive animations are paused or killed, and ScrollTrigger gets refresh() only when layout actually changes.

Why animation jank happens

The skill's core idea is that layout and paint are expensive and compositing is cheap. Transforms and opacity stay on the compositor, so they animate smoothly even when the main thread is busy.

It also reminds the agent that too many simultaneous tweens or ScrollTriggers cost real time, so it should test on low-end devices when creating many.

Who the gsap-performance skill is for

Best for

  • Pages where scroll or hover animation drops frames on mid-range phones.
  • Agents that animate left and top for movement or add will-change everywhere.
  • Review passes that sit next to fixing-motion-performance, which targets the same class of problem more broadly.

Not for

  • Learning the GSAP API. Start with gsap-core.
  • Replacing profiling. The skill itself says to test on low-end devices when you create many tweens or ScrollTriggers.