Skip to content

fix: graceful degradation for motion-heavy sites (closes #39)#56

Open
YAMRAJ13y wants to merge 1 commit into
JCodesMore:masterfrom
YAMRAJ13y:fix/issue-39-motion-heavy-graceful-degradation
Open

fix: graceful degradation for motion-heavy sites (closes #39)#56
YAMRAJ13y wants to merge 1 commit into
JCodesMore:masterfrom
YAMRAJ13y:fix/issue-39-motion-heavy-graceful-degradation

Conversation

@YAMRAJ13y

@YAMRAJ13y YAMRAJ13y commented Jun 24, 2026

Copy link
Copy Markdown

Takes a crack at #39 — sites with a lot of dynamic effects currently tend to fail outright when you try to clone them.

The root of it is that the clone-website skill treats every animation as something it has to reproduce exactly. On a heavy site (WebGL, chained GSAP, dozens of staggered reveals) the agent tries to rebuild all of it in one pass, the build breaks, and you end up with nothing usable — which lines up with what the issue describes.

This makes motion a layer on top of a working static clone instead of a hard requirement:

  • Build the static, pixel-accurate version first so it actually compiles, then add animations back in priority order, checking the build after each one.
  • For effects that aren't worth rebuilding by hand (shader scenes, big timelines, Lottie), fall back to a looping muted video or a screenshot and note the substitution instead of letting it block everything.
  • Added a quick "motion complexity triage" during recon that detects the animation stack (Framer Motion, GSAP/ScrollTrigger, Lenis, Three.js/WebGL/canvas, Lottie, particles, video backgrounds) and tiers the page light/moderate/heavy so the approach matches the workload.

I edited the source skill and regenerated the platform copies with the existing sync script, so this is docs/prompt only — lint/typecheck/build aren't affected.

Closes #39.

…loses JCodesMore#39)

When a site is packed with dynamic effects (WebGL/canvas scenes, big GSAP
timelines, lots of staggered scroll animations), the skill currently tries
to faithfully rebuild every one of them in a single pass. That's where it
falls apart - the build breaks and you're left with nothing usable, which
is what JCodesMore#39 is describing.

This reworks the approach so motion sits on top of a correct static clone
instead of being a prerequisite for it:

- Get a pixel-accurate static skeleton compiling first (zero animation),
  then add motion back in priority order, verifying the build after each
  step. For effects that aren't realistically worth rebuilding by hand
  (shaders, complex timelines, Lottie), drop in a looping muted video or a
  screenshot and move on.
- A "motion complexity triage" recon step that detects the animation stack
  (Framer Motion, GSAP/ScrollTrigger, Lenis, Three.js/WebGL/canvas, Lottie,
  particles, video backgrounds) and tiers the page light/moderate/heavy so
  the strategy matches the workload.
- A couple of "what not to do" notes and a motion-tier line in the final
  report so anything deferred is surfaced, not silently dropped.

Edited the source skill and regenerated the 9 platform copies with
scripts/sync-skills.mjs. Docs/prompt only - no code touched.
@YAMRAJ13y
YAMRAJ13y force-pushed the fix/issue-39-motion-heavy-graceful-degradation branch from fd23ce6 to 3f0f87b Compare June 30, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 网页的动态效果太多的话,他就完全失效了。

1 participant