Agent skill Web motion
GSAP
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add martinholovsky/claude-skills-generator --skill gsap --agent claude-code --yesCheck this file in your project.claude/skills/gsap/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add martinholovsky/claude-skills-generator --skill gsapSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a Vue or Nuxt client component and a compatible GSAP installation. The isolated GSAP core check used 3.14.2.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- martinholovsky
- Controls
- onMounted · template ref · power2.out · 0.5s · gsap.context().revert()
- Result
- A scoped animation reaches one ready pose and reverts on teardown.
- Skill name
gsap- Repository
martinholovsky/claude-skills-generator
Common pitfall
Avoid this prompt
Use a global selector at module evaluation and leave its tween alive after navigation.
The panel DOM belongs to the client component, and cleanup must affect only its animation.
Use these steps
- Inspect the project and source
- Apply the motion recipe
- Verify behavior and fallback
Project walkthrough
Scope a Vue panel entrance to its own element and verify the ready state and cleanup.
Scope a Vue panel entrance to its own element and verify the ready state and cleanup.
Inspect the project and source
Use a Vue or Nuxt client component and a compatible GSAP installation. The isolated GSAP core check used 3.14.2.
Prompt · Step 1Use the Martin Holovsky GSAP Skill on [my Vue details panel]. Read the implementation workflow and Panel Entrance Animation in SKILL.md. Identify the template ref, mounted component, server-visible final state, and the project’s existing test command. Specify a failing check for the panel’s settled pose or unmount cleanup.Apply the motion recipe
Scope a Vue panel entrance to its own element and verify the ready state and cleanup.
Prompt · Step 2Create the tween in onMounted using the panel ref. From opacity 0, y 20 and scale 0.95, settle in about 0.5s with power2.out. Initialize only when motion is allowed. Collect the component’s animation in a scoped gsap.context and revert it when the component unmounts.Verify behavior and fallback
A scoped animation reaches one ready pose and reverts on teardown.
- A scoped animation reaches one ready pose and reverts on teardown.
Prompt · Step 3Run the existing targeted test and verify no animation state remains after unmount. Reopen the panel and verify there is one fresh entrance. Run the reduced-motion case and check that the final opacity and position are available from the start.
Implementation lookup
Compare the implementation with the recipe and its expected outcome.
Inspect the implementation controlsVerify
- Command or reference
onMounted · template ref · power2.out · 0.5s · gsap.context().revert()- Examples
- A scoped animation reaches one ready pose and reverts on teardown.
FAQ
What should I prepare first?
Use a Vue or Nuxt client component and a compatible GSAP installation. The isolated GSAP core check used 3.14.2.
How do I verify the result?
A scoped animation reaches one ready pose and reverts on teardown.