Optimize homepage hero animation to reduce scroll-time jank - #8
Draft
jasonkdeng with Copilot wants to merge 4 commits into
Draft
Optimize homepage hero animation to reduce scroll-time jank#8jasonkdeng with Copilot wants to merge 4 commits into
jasonkdeng with Copilot wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for waturbine ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Agent-Logs-Url: https://github.com/WATurbine/waturbine-website/sessions/34d9044e-6d10-4618-b67a-964f6b08e1fc Co-authored-by: jasonkdeng <182001243+jasonkdeng@users.noreply.github.com>
Agent-Logs-Url: https://github.com/WATurbine/waturbine-website/sessions/34d9044e-6d10-4618-b67a-964f6b08e1fc Co-authored-by: jasonkdeng <182001243+jasonkdeng@users.noreply.github.com>
Agent-Logs-Url: https://github.com/WATurbine/waturbine-website/sessions/34d9044e-6d10-4618-b67a-964f6b08e1fc Co-authored-by: jasonkdeng <182001243+jasonkdeng@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix laggy animation on home page
Optimize homepage hero animation to reduce scroll-time jank
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Homepage hero animation was laggy due to avoidable per-frame work during scroll. This change reduces animation overhead in the turbine/cloud path while keeping the visual behavior and timing intact.
Cloud animation update-path cleanup
xtransforms ("-120vw" -> "120vw") and per-frame parsing with numeric motion values plususeMotionTemplate.CloudSVGto avoid redundant rerenders.Turbine animation state/DOM churn reduction
motionValue.onChangecallback style touseMotionValueEvent..mainAboutelement in a ref and toggled visibility class only on threshold state transitions.setIsAnimationCompletecalls by guarding updates behind ref-based change detection.rotateInputEndthrough a ref so scroll listeners use current threshold without re-subscribing.Representative change
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/waturbine-website/waturbine-website/node_modules/.bin/next build(dns block)/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/waturbine-website/waturbine-website/node_modules/next/dist/server/lib/start-server.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: