gsap-core

Create timeline-based web animations with GSAP core API across frameworks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/hanzoai/video --skill gsap-core-hanzoai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/hanzoai/video/tree/main/.agents/skills/gsap-core
Command: npx skills add https://github.com/hanzoai/video --skill gsap-core-hanzoai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GSAP Core provides a framework-agnostic way to create robust, performant web animations using the core engine (gsap.to(), gsap.from(), gsap.fromTo(), gsap.set) and establishes best practices for consistent motion across frameworks.

Core Features & Use Cases

  • Core tween methods: gsap.to(), gsap.from(), gsap.fromTo(), gsap.set for common animation patterns.
  • Transform aliases: use x, y, rotation, scale, etc. for reliable DOM/CSS animations with consistent behavior across browsers.
  • Timelines and sequencing: build complex, coordinated motion via timelines and panels, including ScrollTrigger-based scroll-driven animations.
  • Responsive and accessible motion: leverage gsap.matchMedia() to adapt animations to breakpoints and prefers-reduced-motion settings.

Quick Start

Create a simple 2-second fade-in animation for a hero element using gsap.to.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I build timeline-based web animations with GSAP core?▼

Build timeline-based web animations with GSAP core by chaining tweens via gsap.to(), gsap.from(), and gsap.fromTo() into a coordinated timeline. This framework-agnostic approach ensures consistent motion sequencing across vanilla JavaScript and component frameworks.

Does GSAP work with React, Vue, and Svelte for scroll-driven animations?▼

GSAP works with React, Vue, Svelte, and vanilla JavaScript for scroll-driven animations. Using ScrollTrigger, you can bind timeline-based motion to scroll positions while applying core tween methods consistently across these environments.

What is the best way to handle responsive and reduced-motion preferences in GSAP?▼

Handle responsive and reduced-motion preferences in GSAP using gsap.matchMedia(). This method adapts your timeline animations to specific breakpoints and applies alternate motion logic for users with prefers-reduced-motion settings enabled.

Why use transform aliases like x, y, and rotation instead of CSS properties in GSAP?▼

Use transform aliases like x, y, rotation, and scale in GSAP for reliable DOM and CSS animations. These aliases ensure consistent cross-browser behavior and performance, avoiding parsing issues associated with direct CSS transform string manipulation.

Can I create a simple fade-in animation using gsap.to without a timeline?▼

You can create a simple fade-in animation using gsap.to without a timeline by targeting an element and animating its opacity. This single tween method provides a straightforward way to execute common animation patterns independently.

What are the limitations of using GSAP core for complex sequenced motion?▼

GSAP core handles complex sequenced motion through timelines, but limitations arise without proper cleanup in framework lifecycles. You must manage context and gsap.matchMedia conditions manually to prevent memory leaks and ensure accessibility compliance.