In the Skill's Own Terms
gsap-core is the entry skill for GSAP's core engine: single tweens with gsap.to(), gsap.from(), gsap.fromTo() and gsap.set(), plus the common vars — duration (default 0.5), delay, ease (default power1.out), stagger, overwrite and immediateRender. It documents GSAP's transform aliases (x, y, scale, rotation, xPercent), autoAlpha for fades, clearProps, function-based and relative values, and project-wide gsap.defaults().
A large section covers gsap.matchMedia() for responsive breakpoints and prefers-reduced-motion, closing with an official best-practices list and a Do Not section. It is written for designers and developers writing or reviewing GSAP animation in React, Vue, Svelte or vanilla JS.
What it produces
- DOM elements animated through CSSPlugin, which ships inside the core engine and needs no extra plugin.
- A Tween instance returned by every tween method, which you store when you need to pause, play, reverse, kill or scrub.
- Transforms written as aliases and applied in a fixed order: translation, scale, rotationX/Y, skew, rotation.
- Animations and ScrollTriggers created inside a matchMedia handler, reverted automatically once the query stops matching.
How It Works
- 01Pick the Tween Method
gsap.to() animates from the current state to the vars you pass and is the most common call; from() reverses that for entrances, fromTo() states both ends explicitly without reading current values, and set() applies instantly at duration 0.
- 02Write Vars in camelCase
Property names inside the vars object must be camelCase, so CSS properties like background-color or font-size become backgroundColor and fontSize.
- 03Offset with Stagger
A plain number on stagger is the seconds between each target; the object form adds options such as amount with a from direction, or each with from: "random".
- 04Choose an Ease
String eases cover most cases — power1.out is the default feel, with back.out(1.7), elastic.out(1, 0.3), power3.inOut and none as the documented alternatives.
- 05Compute Values per Target
A function passed as a vars value is called once for each target on first render, so index-based values like x: (i) => i * 50 can be spread across a set.
- 06Scope Work to Media Queries
gsap.matchMedia() only runs its setup handler while the query matches, which is how the skill handles responsive breakpoints and reduced-motion users.