iotron/gsap-cookbook/gsap-setup
Claude Code and agent skill by iotron/gsap-cookbook
- community
Checking that the SKILL.md file is still in the repository.
Production recipes for GSAP setup and configuration for any framework — Vue 3, Nuxt 3, React, or Next.js. Detects framework from project files and provides the correct setup pattern. Companion to official gsap-core and gsap-frameworks skills (API reference). Triggers: GSAP setup, GSAP install, gsap plugin, GSAP Nuxt, GSAP Vue setup, GSAP React setup, GSAP Next.js setup, gsap config, GSAP accessibility setup, reduced motion setup, animation project setup, useGSAP, gsap registerPlugin. Non-triggers: Not for animation patterns (use gsap-animate), ScrollTrigger (use gsap-scroll), text effects (use gsap-text), or performance tuning (use gsap-optimise). Outcome: Produces a working GSAP plugin/provider with registered plugins, effects, global defaults, and accessibility setup.
Install
npx vskill@latest install iotron/gsap-cookbook/gsap-setupSKILL.md
The same SKILL.md was published earlier as iotron/gsap-cookbook/gsap-setup.
GSAP Setup
Flow: gsap-setup → gsap-animate → gsap-optimise → gsap-testDetect the framework from project files (nuxt.config, next.config, package.json) and use the matching section below.
Companion: For GSAP core API and defaults, invoke gsap-core. For framework lifecycle/cleanup, invoke gsap-frameworks. This skill covers setup recipes only. Requires:greensock/gsap-skills
1. Installation
Install GSAP per the official gsap-core skill. Then set up the framework plugin below.
2. Framework Setup
<!-- TODO: Remove after greensock/gsap-skills PR merged — Nuxt setup will be in gsap-frameworks skill + examples -->
Nuxt 3
Access: const { $gsap: gsap, $ScrollTrigger: ScrollTrigger } = useNuxtApp()
<!-- TODO: Remove after greensock/gsap-skills PR merged — Vue setup will be in gsap-frameworks skill + examples -->
Vue 3 (Vite)
Access: const gsap = inject('gsap') or import directly (tree-shakes fine with Vite).
<!-- TODO: Remove after greensock/gsap-skills PR merged — React setup already in gsap-react skill -->
React (Vite / CRA)
<!-- TODO: Remove after greensock/gsap-skills PR merged — Next.js setup will be in gsap-frameworks skill + examples -->
Next.js (App Router)
3. Global Defaults
overwrite: 'auto'— kills only conflicting properties on the same target.lagSmoothing(500, 33)— caps lag compensation so big frame drops don't cause a jarring jump.
4. registerEffect — Reusable Animations
Usage: gsap.effects.reveal('.cards') or on timelines: tl.reveal('.cards', {}, '-=0.2')
5. CSS Pre-hide
Elements animated by GSAP should be pre-hidden in CSS to prevent CLS. autoAlpha sets visibility: visible when it runs.
6. Accessibility
Vue / Nuxt composable
React hook
Prefer `gsap.matchMedia()` when animations should auto-revert on preference change — see gsap-animate skill.
References
references/full-plugin-example.md— Complete Nuxt plugin with lazy loaders, registered effects, and ScrollTrigger sort
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gsap-setup/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 11
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iotron/gsap-cookbook/gsap-setup)