gsap

Guide GSAP implementations with safe DOM targeting and structured orchestration.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Probably-Group/Dev-AID --skill gsap-probably-group
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap
Source: https://github.com/Probably-Group/Dev-AID/tree/main/.dev-aid/skills/expert/gsap
Command: npx skills add https://github.com/Probably-Group/Dev-AID --skill gsap-probably-group

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents janky, insecure, and hard-to-maintain GSAP animation implementations by enforcing safe DOM usage, cleanup discipline, and performance/accessibility best practices.

Core Features & Use Cases

  • GSAP animation guidance: Patterns for basic tweens, reusable timelines with labels, and structured React integration using useGSAP.
  • Scroll-driven motion: ScrollTrigger setup patterns including scoped/cleaned triggers and reduced-motion disabling.
  • Advanced motion effects: Flip-based layout transitions and orchestration strategies for complex sequences.
  • Safety & quality gates: Guards against unsafe animation targeting, layout thrashing, missing cleanup on unmount, and reduced-motion violations.

Quick Start

Use the gsap skill when you need to implement a GSAP tween or timeline (including optional ScrollTrigger or Flip) for a scroll-driven or complex motion sequence in a web UI, ensuring you use validated element references, GPU-friendly properties, cleanup, and reduced-motion fallbacks.

Frequently Asked Questions about gsap

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

FAQPage Schema
How do I prevent janky GSAP animations and layout thrashing in React?

Prevent janky GSAP animations by using validated element references, GPU-friendly transform properties, and structured timeline orchestration. This approach avoids layout thrashing and ensures smooth DOM targeting within modern frontend component frameworks.

How do I safely clean up GSAP ScrollTrigger effects on component unmount?

Safely clean up GSAP ScrollTrigger effects by scoping triggers and executing animation cleanup on component unmount. This practice prevents memory leaks and ensures reliable scroll-driven motion behavior across complex web applications.

How do I handle prefers-reduced-motion when building GSAP timelines?

Handle prefers-reduced-motion in GSAP timelines by disabling scroll effects and providing fallback states for users who request reduced motion. This ensures accessibility compliance while maintaining structured animation orchestration for other visitors.

Does GSAP work with React for complex Flip layout transitions?

GSAP works with React for complex Flip layout transitions by using the useGSAP hook for structured integration. This approach applies validated selectors and animation cleanup to safely orchestrate state-driven UI transformations.

Why does my GSAP animation break when targeting unvalidated DOM selectors?

GSAP animations break with unvalidated DOM selectors due to security constraints and targeting failures. Using validated element references ensures safe DOM usage, prevents layout thrashing, and maintains reliable animation execution.