gsap-core

Animate DOM and SVG elements with GSAP tween, easing, and stagger methods.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/DanielV-94/rg-medium --skill gsap-core-danielv-94
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-core
Source: https://github.com/DanielV-94/rg-medium/tree/main/.agents/skills/gsap-core
Command: npx skills add https://github.com/DanielV-94/rg-medium --skill gsap-core-danielv-94

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of creating performant, synchronized animations in JavaScript across frameworks, eliminating the limitations of basic CSS transitions for complex interactions.

Core Features & Use Cases

  • Tween Methods: Use gsap.to(), from(), and fromTo() for precise control over element properties like position, scale, and rotation.
  • Easing and Stagger: Apply built-in eases and stagger effects for natural motion across multiple elements.
  • Responsive Handling: Leverage gsap.matchMedia() for breakpoint-specific animations and accessibility support via prefers-reduced-motion.
  • Use Case: For a landing page, animate hero elements to slide in with stagger on load, ensuring smooth performance on desktop and mobile.

Quick Start

Animate all elements with class 'box' to move 100px right using gsap.to with a power2.out ease.

Frequently Asked Questions about gsap-core

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

FAQPage Schema
How do I create smooth JavaScript animations for DOM elements across different frameworks?

To create smooth JavaScript animations for DOM and SVG elements, use core GSAP API methods like gsap.to() and gsap.fromTo() for precise control over properties such as position, scale, and rotation. This approach works in vanilla JS, React, and Vue without layout recalculations.

What is the best way to stagger animations for multiple elements on a landing page?

The best way to stagger animations for multiple elements is using built-in GSAP stagger effects combined with easing functions. This creates natural motion across elements, allowing hero items to slide in sequentially on page load with smooth performance.

Can I handle responsive animations and accessibility compliance with GSAP?

Yes, you can handle responsive animations and accessibility compliance using gsap.matchMedia(). This method enables breakpoint-specific animations and provides support for prefers-reduced-motion, ensuring your web animations adapt correctly across devices and accessibility settings.

Does GSAP work with React and Vue for timeline control?

Yes, GSAP works with React and Vue for timeline control and synchronized animations. It applies directly to web development scenarios in these frameworks, delivering performant, transform-based effects that eliminate the limitations of basic CSS transitions for complex interactions.

Why use GSAP tweens instead of CSS transitions for complex web interactions?

GSAP tweens are preferred over CSS transitions for complex interactions because they provide precise timeline control, built-in easing, and staggering capabilities. GSAP also ensures performant transform-based effects without triggering layout recalculations, overcoming basic CSS limitations.