gsap-core

Create GSAP tweens and timelines for UI animations across frameworks.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/AlejandroFigini/artist-portfolio --skill gsap-core-alejandrofigini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/AlejandroFigini/artist-portfolio/tree/main/.agent/skills/gsap-core
Command: npx skills add https://github.com/AlejandroFigini/artist-portfolio --skill gsap-core-alejandrofigini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GSAP core provides a robust foundation for building high-performance, cross-framework animations by exposing the core tween methods and transforms needed to drive DOM/SVG motion with consistent timing, easing, and sequencing.

Core Features & Use Cases

  • Core tween methods: to(), from(), fromTo(), set().
  • Timeline-based sequencing and staggered effects for coordinated UI.
  • Framework-agnostic usage (vanilla JS, React, Vue, Svelte) with ScrollTrigger, matchMedia, and transform aliases.
  • Real-world use cases: button hover animations, entrance sequences, scroll-driven panels, and responsive UI that respects prefers-reduced-motion.

Quick Start

Install and import GSAP, then write a simple tween to move an element with a duration.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I create timeline-based animation sequences in React or Vue?

To create timeline-based animation sequences in React or Vue, use GSAP core methods like gsap.to and gsap.from within component lifecycle hooks. This approach provides framework-agnostic DOM motion control with consistent timing, easing, and staggered UI effects.

Can I use GSAP ScrollTrigger for scroll-driven panel animations in vanilla JS?

Yes, you can use GSAP ScrollTrigger for scroll-driven panel animations in vanilla JS. The core API supports ScrollTrigger-based sequences alongside matchMedia, enabling responsive scroll animations that respect prefers-reduced-motion across vanilla JS and component frameworks.

What is the difference between gsap.from, gsap.fromTo, and gsap.set for UI animations?

The difference between gsap.from, gsap.fromTo, and gsap.set lies in animation state transitions. gsap.from animates from specified values to current state, gsap.fromTo defines both start and end states, and gsap.set immediately applies transform values without transition for static UI configuration.

How do I build staggered entrance animations with GSAP core tweens?

To build staggered entrance animations with GSAP core tweens, use timeline-based sequencing combined with the stagger property inside gsap.to or gsap.from methods. This coordinates multiple UI elements into smooth, timed entrance sequences for robust front-end motion design.

Does GSAP core support responsive animation for prefers-reduced-motion?

Yes, GSAP core supports responsive animation for prefers-reduced-motion through the matchMedia method. This allows developers to conditionally apply or disable tween methods and timeline sequences based on user motion preferences, ensuring accessible front-end UI components.

Why use GSAP core tweens instead of CSS animations for front-end UI components?

You should use GSAP core tweens instead of CSS animations when you need complex timeline-based sequencing, ScrollTrigger-driven panels, and matchMedia responsive controls. Core tween methods offer precise programmatic easing and transform aliases that CSS animations cannot easily replicate.