Agent skill Web motion
GSAP Plugins
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 nexu-io/open-design --skill gsap-plugins --agent claude-code --yesCheck this file in your project.claude/skills/gsap-plugins/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add nexu-io/open-design --skill gsap-pluginsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The Open Design and GreenSock editions use the same installed Skill directory. Check the source and the edition your project needs if the name is already present. A GSAP-enabled app, stable item identities, and a grid control that already updates layout or order.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Current edition
- The GreenSock workflow curated by Open Design.
- Upstream publisher
- GreenSock
- Installed content
- SKILL.md with workflow guidance
- Result
- A working Flip transition that ends at the actual grid layout.
- Skill name
gsap-plugins- Repository
nexu-io/open-design
Common pitfall
Avoid this prompt
Reorder the grid first, then capture its state and use Flip defaults to scale the cards.
The state would already contain the new geometry. Flip defaults to width and height for resizing. Pass scale: true to opt into transform-based scaling.
Use these steps
- Trace the existing layout control and identify the moment its DOM update commits.
- Register Flip and animate from the captured positions after the layout updates.
- Test repeated updates and compare the settled order and size to the committed layout.
Hands-on walkthrough
Add a Flip transition to an existing grid control while preserving the resulting DOM order and keyboard behavior.
Add a Flip transition to an existing grid control while preserving the resulting DOM order and keyboard behavior.
Find stable grid targets
Trace the existing layout control and identify the moment its DOM update commits.
Prompt · Step 1Load the Open Design edition of the gsap-plugins Skill. Use gsap-plugins to inspect [grid and layout control]. Identify the exact control, items with stable identity, and layout or sorting state. Show when the new DOM becomes measurable. Check the working layout and keyboard behavior before changing code.Capture, commit, then animate
Register Flip and animate from the captured positions after the layout updates.
Prompt · Step 2Import { Flip } from "gsap/Flip" and register it with gsap.registerPlugin(Flip) in the app’s browser code. Capture the stable targets with Flip.getState() before the existing update. Wait for the new layout to commit, then run Flip.from(). Test scale: true only if transform scaling suits resizing cards, and enable nested: true only if parent and child targets need offset compensation. Commit the layout directly with reduced motion.Verify rapid changes and final layout
Test repeated updates and compare the settled order and size to the committed layout.
- The animation starts from the old layout and settles at the latest committed order and size.
- The control accepts keyboard input and the layout updates with reduced motion.
Prompt · Step 3Exercise the control normally, then switch twice before the first transition finishes. Compare the final DOM order and measured card bounds with the latest choice, including with reduced motion. Test keyboard activation and focus, and report observed behavior at both a wide and a narrow viewport.
API lookup
Use these calls when adapting the walkthrough to your component.
Capture before the updateGSAP
- Command or reference
Flip.getState() → Flip.from()- Examples
- Capture before mutation. Animate after the new DOM has committed.
Select a resizing strategyGSAP
- Command or reference
scale: true- Examples
- Opt into transform scale when the card content can scale with the container.
FAQ
When does nested: true help?
Use it when both a parent and its descendant are Flip targets and the parent’s motion would otherwise affect the child’s offsets.
What does installing the skill add?
The project skill folder contains the publisher’s SKILL.md. Your application still needs its own GSAP dependency and a page to run the animation.