gsap-core

Implements GSAP core tweens, eases, staggers, and responsive matchMedia animations in JavaScript.

1|Updated Aug 6, 2026
One-click install
npx skills add https://github.com/luce12/agent-dev-workflow --skill gsap-core-luce12
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/luce12/agent-dev-workflow/tree/main/toolkits/gsap-core
Command: npx skills add https://github.com/luce12/agent-dev-workflow --skill gsap-core-luce12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap.

What problem does it solve? Writing correct GSAP animations requires knowing the right tween methods, transform aliases, easing names, and accessibility patterns; this Skill encodes the official GSAP core API guidance so generated animation code follows best practices. ## Core Features & Use Cases - Core Tween Methods: Covers gsap.to(), from(), fromTo(), and set() with correct vars like duration, delay, ease, stagger, overwrite, and immediateRender. - Transforms & Easing: Enforces camelCase properties, transform aliases (x, y, scale, rotation), autoAlpha, directional rotation, and the full built-in ease catalog plus CustomEase. - Responsive & Accessible Animation: Uses gsap.matchMedia() for breakpoints and prefers-reduced-motion so animations revert cleanly and respect vestibular sensitivities. - Use Case: When asked to animate a card grid entrance in a React or vanilla JS page, the Skill produces a staggered gsap.to() tween with autoAlpha, a power ease, and a matchMedia block that disables motion for reduced-motion users. ## Quick Start Use the gsap-core skill to animate the hero section elements with a staggered fade-in that respects prefers-reduced-motion.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I animate elements with GSAP in JavaScript?▼

Use gsap.to(targets, vars) to animate from the current state to the values in vars, such as gsap.to(".box", { x: 100, duration: 1 }). Targets can be a CSS selector, element, or array, and vars use camelCase property names.

GSAP vs CSS animations: which should I use?▼

CSS animations work for simple transitions, but GSAP is preferred when you need timeline sequencing, runtime control like pause and reverse, complex easing, scroll-based animation, or dynamic values computed in JavaScript.

Does GSAP work with React, Vue, and vanilla JS?▼

GSAP is framework-agnostic and runs in React, Vue, Svelte, Astro, and vanilla JavaScript anywhere JavaScript runs. It also powers Webflow Interactions, so GSAP patterns apply when debugging Webflow animations.

How do I respect prefers-reduced-motion in GSAP?▼

Use gsap.matchMedia() with a reduceMotion condition like "(prefers-reduced-motion: reduce)" and set duration to 0 or skip the animation when it matches. Animations created inside matchMedia revert automatically when the query stops matching.

Why is my second gsap.from() tween not visible?▼

Multiple from() or fromTo() tweens on the same property conflict because immediateRender defaults to true, so the later tween overwrites the first tween's end state. Set immediateRender: false on the later tweens to fix it.

Should I animate opacity or autoAlpha in GSAP?▼

Prefer autoAlpha over opacity for fades. When autoAlpha reaches 0, GSAP also sets visibility: hidden so the element stops blocking pointer events, and restores visibility when it becomes non-zero.