gsap-frameworks
Skill by nexu-io
Gives AI assistants GSAP patterns for Vue 3, Nuxt 4 and Svelte. It covers mounting animations, scoping selectors and reverting them on unmount. It is for developers animating components in these frameworks.
Install gsap-frameworks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nexu-io/open-design /tmp/open-design && mkdir -p ~/.claude/skills && cp -r /tmp/open-design/skills/gsap-frameworks ~/.claude/skills/gsap-frameworksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nexu-io/open-design /tmp/open-design && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/open-design/skills/gsap-frameworks ~/.gemini/antigravity-cli/skills/gsap-frameworksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a GSAP guide for Vue 3, Nuxt, Svelte and SvelteKit, and other component frameworks with a mount and unmount lifecycle. It is curated from GreenSock's official GSAP skills. It tells the assistant to create tweens and ScrollTriggers after the component's DOM exists, using onMounted in Vue or onMount in Svelte. It also tells the assistant to clean them up on unmount.
The main method is gsap.context(callback, scope). Passing the component's root element as the scope limits selectors like .box to that component. Calling ctx.revert() kills the animations and ScrollTriggers and reverts inline styles. The skill includes examples for Vue 3 with the Composition API and script setup, a Nuxt 4 composable that registers and lazy loads plugins, and a Svelte component. It is for developers who want animation in these frameworks. For React, the skill points to gsap-react instead.
Written from the project's SKILL.md and checked against it.
What it can do
- Vue 3 lifecycle patternRuns GSAP in onMounted and reverts the context in onUnmounted.
- Vue 3 script setup patternShows the same gsap.context and cleanup approach using script setup and refs.
- Nuxt 4 composableRegisters GSAP plugins once and lazy loads less used plugins through a useGSAP composable.
- Svelte onMount patternCreates a GSAP context in onMount and returns a cleanup function that calls ctx.revert().
- Scoped selectorsPasses the component root as the gsap.context scope so selectors do not match elements outside it.
- ScrollTrigger cleanupCreates ScrollTriggers inside the same context so ctx.revert() also removes them.
- Lifecycle rulesLists when to create animations and when to revert them, plus common mistakes to avoid.
What you need
- GSAP library
- Vue 3 or Nuxt 4 project
- Svelte or SvelteKit project
Try asking
- Animate the items in my Vue component on mount with GSAP
- Add a GSAP fade-in to my Svelte component and clean it up on destroy
- Set up GSAP in my Nuxt 4 app with a composable and lazy loaded plugins
Good to know
- Covers Vue, Nuxt, Svelte and similar frameworks only. For React, use the gsap-react skill.
- Svelte 5 uses a different lifecycle, and the skill says only the principle applies.
- The Nuxt example is described as SSR-safe in the linked example project, not in the skill text.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gsap-frameworks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE1 KB -
SKILL.md11 KB -
SOURCES.md817 B
Alternatives to gsap-frameworks
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
gsap-frameworks: common questions
Does this skill work with React?
No. The skill says React should use the separate gsap-react skill, which covers useGSAP and gsap.context().
Why does the skill say to pass a scope to gsap.context?
The scope limits selectors such as .box to the component's root element. Without it, selectors can match elements elsewhere on the page.
What happens to ScrollTriggers when the component unmounts?
ScrollTriggers created inside gsap.context() are reverted when ctx.revert() is called. The skill says to call it in onUnmounted or the onMount cleanup.
How do I install gsap-frameworks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gsap-frameworks free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gsap-frameworks safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gsap-frameworks?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
