r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 6d ago
Selected Workflow [Workflow] Adapt and validate a scroll-driven GSAP site with Claude Code
Adapt and validate a scroll-driven GSAP site with Claude Code
Workflow value: 78/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping
Original source: r/ClaudeCode post/comment
What problem this solves
Build and adapt scroll-driven animated sites while checking that animations work across screen sizes and actual devices.
Summary
Use an open-source GSAP site as a template, preserve its scroll director and controls, adapt its content and visuals, and validate each change with production builds, browser checks, deliberate test failures, and real-device review.
Why it is useful
It combines a reusable adaptation prompt with a concrete animation architecture and a strong verification practice: deliberately proving that checks fail when the behavior is broken.
Workflow
- Choose a single visual concept and plan its scenes as a sequence measured in screens of scroll.
- Adapt a Sum, Meridian, or Datum site with Claude Code, explicitly listing what may change and preserving the scroll director, scene timing, buttons, arrow keys, and text-image separation rule.
- Keep text and numbers in content.ts and derive image-based measurements with scripts rather than entering them manually.
- Use paused GSAP timelines driven by scroll and sticky positioning for pinned scenes; adapt the visual assets to the concept.
- After each change, make a production build and run the site's checks at wide and phone-sized viewports. Review full-size frames of each resting scene.
- Deliberately break an animation rule and confirm that its check fails, then restore the implementation.
- Test on a real phone as well as in automated browsers, especially for animation and engine compatibility.
Tools / artifacts
- Claude Code
- GSAP
- Puppeteer
- CSS position: sticky
- content.ts
- Sum, Meridian, and Datum source code
- Production builds and scene frames
Validation signals
- The author reports browser checks covering scenes on desktop and phone-sized viewports.
- A real iPhone reportedly exposed a GSAP scale-setting error that automated checks missed.
- Deliberately breaking Datum revealed that its initial check passed even when lines were never drawn.
Cautions
- Review third-party repository code and scripts before running them.
- Check rights, privacy, and costs before uploading images to external generation or editing services.
Limitations
- Results and test behavior are author-reported; no independent validation is provided.
- The post does not provide exact build or check commands, or the implementation of the browser assertions.
- The initial check failure illustrates that passing screenshots or assertions alone can miss incorrect motion.
- The full approach requires substantial GSAP, browser-testing, and potentially WebGL expertise.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.