gsap-core

Provide a framework-agnostic GSAP core API for tweens, timelines, and scroll interactions.

Updated Dec 13, 2019
One-click install
npx skills add https://github.com/polaroidkidd/dle.dev --skill gsap-core-polaroidkidd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/polaroidkidd/dle.dev/tree/main/.agents/skills/gsap-core
Command: npx skills add https://github.com/polaroidkidd/dle.dev --skill gsap-core-polaroidkidd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the challenge of building complex, cross-framework UI animations by providing a framework-agnostic GSAP core API.

Core Features & Use Cases

  • Core tween methods: gsap.to(), gsap.from(), gsap.fromTo(), gsap.set() for controlling animation states.
  • Transform handling and CSS properties: camelCase properties, transform aliases, autoAlpha, and responsive tools like gsap.matchMedia() for prefers-reduced-motion support.
  • Timelines and Scroll-based animation: timeline-based sequencing and ScrollTrigger integration for complex interactions across devices.
  • Use case: implement a responsive hero entrance and parallax effects with a single API, regardless of framework.

Quick Start

Install GSAP in your project and start by creating a simple tween with the core API.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I create a reliable UI animation that works across different JavaScript frameworks?

A framework-agnostic GSAP core API provides reliable, cross-framework UI animations using single tweens, timelines, and scroll-based interactions. It works seamlessly across React, Vue, Svelte, or vanilla JavaScript with deterministic behavior.

How do I handle responsive animations and prefers-reduced-motion using GSAP?

Use gsap.matchMedia() to build responsive animations and support prefers-reduced-motion. The GSAP core API includes this tool alongside transform aliases and autoAlpha to manage visibility and motion across different screen sizes.

What's the best way to sequence multiple UI animations with GSAP?

Timeline-based sequencing is the best way to chain multiple UI animations with GSAP. The core API allows you to build complex timeline sequences and integrate ScrollTrigger for scroll-based interactions across devices.

Does GSAP core work with React, Vue, and Svelte without framework-specific wrappers?

Yes, the GSAP core API is framework-agnostic and works directly with React, Vue, Svelte, and vanilla JavaScript. It provides core tween methods like to, from, fromTo, and set without requiring framework-specific wrappers.

Why does my GSAP animation break when switching between frameworks?

Cross-framework animation issues often stem from inconsistent API usage rather than framework conflicts. The GSAP core API provides deterministic behavior and robust error handling to ensure reliable transforms and tweens regardless of the JavaScript framework used.

Can I use GSAP ScrollTrigger for complex scroll-based interactions across devices?

Yes, the GSAP core API supports ScrollTrigger integration for complex scroll-based interactions. You can implement responsive hero entrances and parallax effects with a single API that works consistently across devices.