gsap-frameworks

Integrate GSAP animations into Vue and Svelte component lifecycles.

3|2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/woxiangyangzhimao/skills --skill gsap-frameworks-woxiangyangzhimao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-frameworks
Source: https://github.com/woxiangyangzhimao/skills/tree/main/gsap-frameworks
Command: npx skills add https://github.com/woxiangyangzhimao/skills --skill gsap-frameworks-woxiangyangzhimao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap, gsap/ScrollTrigger, and includes scripts (resource) components.

What problem does it solve?

This Skill Unit helps developers seamlessly integrate GSAP animations into non-React frameworks like Vue, Svelte, and others, providing consistent animation capabilities across various frameworks.

Core Features & Use Cases

  • Animation Integration: Effortlessly create animations using GSAP in Vue, Svelte, and other frameworks.
  • Component Life Cycle: Use GSAP within component life cycles, such as mounted and unmounted, for effective animations.
  • Use Case: Enhance user interface elements with animations to improve user experience without needing React.

Quick Start

Integrate GSAP animations into your Vue component by calling gsap.context(() => {...}) onMount.

Frequently Asked Questions about gsap-frameworks

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

FAQPage Schema
How do I integrate GSAP animations into a Vue or Svelte component lifecycle?

You integrate GSAP animations by calling gsap.context(() => {...}) within the component's mounted lifecycle phase, ensuring animations execute cleanly while the component is active.

Does GSAP work with Vue and Svelte without React?

Yes, GSAP works with Vue and Svelte. It provides consistent animation capabilities across non-React JavaScript frameworks, allowing you to enhance interfaces without needing React.

How do I clean up GSAP ScrollTrigger animations after a Svelte component is destroyed?

GSAP animation cleanup after component destruction is handled by utilizing gsap.context() during the mounted phase, which ensures all associated animations and ScrollTriggers are properly reverted and cleaned up on unmount.

What's the best way to prevent memory leaks when using GSAP in Vue?

The best way to prevent memory leaks is using gsap.context() on mount, which scopes animations to the component and guarantees clean-up after component destruction, effectively preventing lingering animation processes.

Can I use gsap ScrollTrigger for scroll-based animations in Svelte?

Yes, you can use ScrollTrigger for scroll-based animations in Svelte. The integration utilizes gsap and gsap/ScrollTrigger to create scroll-driven animations while maintaining lifecycle compatibility.