gsap-core

Implements GSAP core tweens, eases, staggers, and matchMedia for DOM and SVG animation.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Gito125/gideon_portfolio --skill gsap-core-gito125
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/Gito125/gideon_portfolio/tree/main/.github/skills/gsap-core
Command: npx skills add https://github.com/Gito125/gideon_portfolio --skill gsap-core-gito125

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing correct GSAP animations requires knowing the right tween methods, transform aliases, easing names, and accessibility patterns; this Skill provides the official core API guidance so generated animation code follows GSAP 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: Documents transform aliases (x, y, scale, rotation, xPercent), autoAlpha, svgOrigin, directional rotation, and the full built-in ease catalog plus CustomEase. - Responsive & Accessible Animation: Explains gsap.matchMedia() for breakpoints and prefers-reduced-motion handling with automatic revert. - Use Case: When a user asks to animate a card grid entrance in a React app, use this Skill to produce a staggered gsap.to() tween with autoAlpha, a power3.out ease, and a matchMedia block that disables motion for reduced-motion users. ## Quick Start Use the gsap-core skill to write a staggered fade-in animation for my list items 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 an element with GSAP in JavaScript?▼

Use gsap.to(target, vars) to animate from the current state to the values in vars, for example gsap.to(".box", { x: 100, rotation: 360, duration: 1 }). Use gsap.from() for entrances and gsap.fromTo() when you need explicit start and end states.

What is the difference between gsap.to, gsap.from, and gsap.fromTo?▼

gsap.to() animates from the current state to the given values, gsap.from() animates from the given values to the current state, and gsap.fromTo() sets explicit start and end values without reading current state. from() and fromTo() render their start state immediately by default.

How do I stagger animations across multiple elements in GSAP?▼

Pass a stagger value in the vars object, such as stagger: 0.1 for 0.1 seconds between each target. For advanced control use the object form, like { amount: 0.3, from: "center" } or { each: 0.1, from: "random" }.

Does GSAP support prefers-reduced-motion accessibility?▼

Yes, gsap.matchMedia() accepts a prefers-reduced-motion query so you can set duration to 0 or skip animations for users who prefer reduced motion. All animations created inside a matchMedia handler revert automatically when the query stops matching.

Why is my second gsap.from() tween not playing on the same element?▼

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 tween to fix it.

Should I animate width and height or transforms in GSAP?▼

Prefer transform aliases like x, y, scale, and rotation over layout properties such as width, height, top, or left. Transforms render faster and GSAP applies them in a consistent order across browsers.