What problem does it solve?
This Skill provides clear, practical guidance for animating DOM and SVG elements with GSAP's core API, removing uncertainty about which tween methods, properties, and patterns to use for performant, controllable animations across frameworks and responsive breakpoints.
Core Features & Use Cases
- Core tweening: Guidance for gsap.to(), gsap.from(), gsap.fromTo(), and gsap.set() to animate properties, transforms, and CSS variables.
- Performance & best practices: Use transform aliases (x, y, scale, rotation), autoAlpha for fades, and avoid layout-heavy property animations for smoother rendering.
- Sequencing & control: Recommend storing returned Tween instances for pause/play/reverse and prefer timelines for complex sequences; use stagger for coordinated entrances.
- Responsive & accessibility: Use gsap.matchMedia() for breakpoints and prefers-reduced-motion handling so animations are reverted or reduced automatically.
- Use case: Implement a responsive card entrance that staggers children on desktop, reduces motion when requested by the user, and allows pausing or reversing on interaction.
Quick Start
Create a GSAP tween that moves .card 100px to the right with ease power1.out over 0.6s, fades with autoAlpha, and uses gsap.matchMedia to disable animation when prefers-reduced-motion is active.