Agent skill Web motion
GSAP Scrolltrigger
Design or implement effects that respond to scrolling on a web page.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/core-3d-animation/skills/gsap-scrolltrigger --skill gsap-scrolltrigger --agent claude-code --yesCheck this file in your project.claude/skills/gsap-scrolltrigger/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/core-3d-animation/skills/gsap-scrolltrigger --skill gsap-scrolltriggerSelect 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 Python 3 for the generator and a browser project with GSAP and ScrollTrigger. Apply the generated code to the project’s actual scroller.
View operation manualWhat this skill helps with
- Design or implement effects that respond to scrolling on a web page.
Good for
- Scroll-driven storytelling
- Publisher
- freshtechbro
- Controls
- generate_animation.py --type progress-bar · scaleX · scrub: 0.3 · refresh
- Result
- The generated behavior tracks the real scroll range after the project supplies its geometry.
- Skill name
gsap-scrolltrigger- Repository
freshtechbro/claudedesignskills
Common pitfall
Avoid this prompt
Paste generated code and assume it starts at zero or tracks the correct container.
The starting scale, transform origin and scroll extent must be grounded in the project DOM.
Use these steps
- Inspect the project and source
- Apply the motion recipe
- Verify behavior and fallback
Project walkthrough
Generate and verify a decorative reading-progress bar using the installed scaffold script.
Generate and verify a decorative reading-progress bar using the installed scaffold script.
Inspect the project and source
Use Python 3 for the generator and a browser project with GSAP and ScrollTrigger. Apply the generated code to the project’s actual scroller.
Prompt · Step 1Use FreshTechBro’s GSAP ScrollTrigger Skill on [my reading guide]. From the installed Skill run python3 scripts/generate_animation.py --type progress-bar --trigger ".reading-progress" --output progress.js. Compare the generated selector and ScrollTrigger range with the actual document or scroll pane.Apply the motion recipe
Generate and verify a decorative reading-progress bar using the installed scaffold script.
Prompt · Step 2Start the decorative bar at scaleX(0) with transform-origin:left and animate to 1. Register ScrollTrigger in browser code. Use document.documentElement as the trigger for this document-scrolling example, and bind the right scroller for a nested container. Retain the scaffold’s 0.3s scrub when it fits and scope cleanup to this page.Verify behavior and fallback
The generated behavior tracks the real scroll range after the project supplies its geometry.
- The generated behavior tracks the real scroll range after the project supplies its geometry.
Prompt · Step 3Inspect progress at top, middle, bottom, and after scrolling back. Resize the view or load an image that changes geometry and refresh measurements. Verify decorative markup stays outside the accessibility tree and the scoped trigger is gone after teardown.
Implementation lookup
Compare the implementation with the recipe and its expected outcome.
Inspect the implementation controlsVerify
- Command or reference
generate_animation.py --type progress-bar · scaleX · scrub: 0.3 · refresh- Examples
- The generated behavior tracks the real scroll range after the project supplies its geometry.
FAQ
What should I prepare first?
Use Python 3 for the generator and a browser project with GSAP and ScrollTrigger. Apply the generated code to the project’s actual scroller.
How do I verify the result?
The generated behavior tracks the real scroll range after the project supplies its geometry.