greensock/gsap-frameworks
Vue, Svelte, and other frameworks with lifecycle, scoping, and cleanup patterns
Open source
Description
gsap-frameworks is an agent skill from the GSAP project that handles animation setup and teardown for Vue, Nuxt, Svelte and SvelteKit. It covers component lifecycle work: creating tweens after mount, scoping selectors to the component root so they do not match elements elsewhere on the page, and cleaning up tweens and ScrollTrigger instances when the component unmounts. The page explains that without lifecycle-aware setup, GSAP selectors match across the whole page and ScrollTrigger instances pile up on every mount, which causes conflicts and memory leaks that are hard to trace. Example jobs are adding scroll-triggered animations to a Vue component without leaking ScrollTriggers, scoping a Svelte selector such as .box to a single component, cleaning up timelines when a Vue route component unmounts, running GSAP inside onMount in SvelteKit with ctx.revert() in the cleanup, and refreshing ScrollTrigger positions after async content loads. It is aimed at developers who already use GSAP in those frameworks. Install it with npx skills add https://github.com/greensock/gsap-skills --skill gsap-frameworks. The skill is in the greensock gsap-skills repository on GitHub, and the page lists it under development.…
Highlights
- Tween setup after component mount
- Selectors scoped to the component root
- Cleanup of tweens and ScrollTriggers on unmount
- Vue, Nuxt, Svelte and SvelteKit patterns
- Refresh ScrollTrigger after async content
Ratings & Reviews
No ratings yet
Be the first to rate greensock/gsap-frameworks.
People also visit

gsap-frameworks
GSAP animation setup for Vue, Svelte, Nuxt, and other component frameworks
greensock/gsap-react
React integration with useGSAP hook, refs, gsap.context(), cleanup, and SSR

gsap-framer-scroll-animation
Build scroll animations, scroll effects, parallax, scroll-triggered reveals
greensock/gsap-frameworks FAQ
Which frameworks does it cover?
Vue, Nuxt, Svelte and SvelteKit.
How do I install it?
Run npx skills add https://github.com/greensock/gsap-skills --skill gsap-frameworks.
What problem does it solve?
It keeps GSAP selectors scoped to a component and cleans up tweens and ScrollTriggers so they do not leak between mounts.
Does it cover cleanup?
Yes. The page covers cleanup on unmount, such as ctx.revert() in SvelteKit's onMount.
Who publishes it?
The GSAP project, in its gsap-skills repository on GitHub. The page labels the skill community.
What are the best greensock/gsap-frameworks alternatives?
Popular alternatives to greensock/gsap-frameworks include gsap-frameworks, gsap-frameworks and gsap-skills (repo). See all greensock/gsap-frameworks alternatives






