gsap-frameworks

Integrate GSAP animations in Vue, Svelte, and other non-React frameworks.

13.3k|785|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/greensock/gsap-skills --skill gsap-frameworks-greensock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-frameworks
Source: https://github.com/greensock/gsap-skills/tree/main/skills/gsap-frameworks
Command: npx skills add https://github.com/greensock/gsap-skills --skill gsap-frameworks-greensock

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of implementing GSAP animations in non-React frameworks such as Vue, Svelte, and others, providing guidelines for lifecycle management and selector scoping.

Core Features & Use Cases

  • GSAP Integration: Supports GSAP animations within Vue, Svelte, and similar frameworks.
  • Lifecycle Management: Offers best practices for creating and cleaning up GSAP animations according to the framework’s lifecycle events.
  • Selector Scoping: Guidance on using scoped selectors to ensure animations do not affect elements outside the intended component scope.
  • Use Case: If you are developing an interactive web application using Vue or Svelte and need to incorporate GSAP animations that respect the component lifecycle and scope, this Skill is essential.

Quick Start

Use the gsap-frameworks skill to implement GSAP animations within a Vue component.

Frequently Asked Questions about gsap-frameworks

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

FAQPage Schema
How do I use GSAP animations in Vue without breaking component scope?

GSAP animations in Vue require scoped selectors to prevent targeting elements outside the intended component. This Skill provides guidelines for using scoped selectors and managing GSAP animations within Vue's component lifecycle events.

What's the best way to handle GSAP animation cleanup in Svelte components?

GSAP animation cleanup in Svelte involves destroying animations during the component's onDestroy lifecycle event. This Skill offers best practices for creating and cleaning up GSAP animations according to the framework’s lifecycle events to prevent memory leaks.

Can I use GSAP with non-React frameworks like Svelte and Vue?

Yes, GSAP works with non-React frameworks like Svelte and Vue. This Skill provides specific guidelines for GSAP integration with Vue, Svelte, and similar component-based frameworks, focusing on lifecycle management and selector scoping.

Why do my GSAP animations affect elements outside the intended component scope?

GSAP animations affect elements outside the component scope when global selectors are used instead of scoped selectors. This Skill provides guidance on using scoped selectors to ensure GSAP animations only affect elements within the intended component boundary.

Do I need prior GSAP API knowledge to integrate it with Vue or Svelte?

Yes, familiarity with the GSAP API and the chosen frontend framework is required. This Skill provides guidelines for GSAP animation integration with Vue and Svelte, but expects you to already understand the GSAP API and framework lifecycle concepts.

When do I need to manage GSAP lifecycle events in component-based frameworks?

GSAP lifecycle events need management whenever interactive web applications use component-based frameworks like Vue or Svelte. This Skill addresses the challenge of implementing GSAP animations by providing best practices for creating and cleaning up animations during framework lifecycle events.