gsap-core

Create GSAP core tweens for DOM and SVG in React, Vue, Svelte, or vanilla JS.

Updated Oct 2, 2024
One-click install
npx skills add https://github.com/James-Gamboa/portfolio-james --skill gsap-core-james-gamboa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/James-Gamboa/portfolio-james/tree/main/.agents/skills/gsap-core
Command: npx skills add https://github.com/James-Gamboa/portfolio-james --skill gsap-core-james-gamboa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create reliable web animations using the GSAP core API (gsap.to(), gsap.from(), gsap.fromTo(), and related utilities) across DOM/SVG in React, Vue, Svelte, or vanilla JS, including responsive and reduced-motion scenarios.

Core Features & Use Cases

  • Core tween methods (to, from, fromTo, set) with easing, stagger, and timeline support for precise animation control.
  • Scroll-driven animation and media-query awareness via gsap.matchMedia for responsive behavior.
  • Framework-agnostic usage across React, Vue, Svelte, and vanilla JavaScript for reusable animation patterns.

Quick Start

Provide a minimal GSAP core tween example that animates a DOM element using gsap.to with basic properties.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I create DOM animations using GSAP in React or Vue?

GSAP core animations work across React, Vue, Svelte, and vanilla JS by applying gsap.to(), gsap.from(), and gsap.fromTo() methods to DOM or SVG elements for framework-agnostic UI animation patterns.

Can I use GSAP core for responsive animations with reduced-motion support?

GSAP core supports responsive behavior and reduced-motion scenarios using gsap.matchMedia, letting you apply media-query awareness to your scroll-driven animations and interactive UI elements.

What is the best way to sequence multiple GSAP tweens for interactive UI?

Sequencing GSAP tweens is best handled using timeline support combined with easing and stagger properties, providing precise animation control for interactive storytelling and responsive interfaces.

Does GSAP core require external dependencies for scroll-driven web animations?

GSAP core handles scroll-driven animation and core tween methods without listing external dependencies, relying on its built-in API to manipulate DOM and SVG elements across modern web apps.

How do I animate SVG elements with GSAP core tween methods?

Animate SVG elements with GSAP core by targeting them with gsap.set, gsap.to, or gsap.fromTo methods, applying transforms and easing for reliable vector graphics animation across frameworks.

Why use gsap.matchMedia when building web animations across different screen sizes?

Use gsap.matchMedia to ensure responsive behavior and accessibility in web animations, allowing your GSAP tweens to adapt or disable based on media queries and reduced-motion user preferences.