Skip to content

Optimize footer slide animation on scroll#3

Draft
tmrr13 wants to merge 1 commit intomasterfrom
cursor/optimize-footer-slide-animation-on-scroll-1308
Draft

Optimize footer slide animation on scroll#3
tmrr13 wants to merge 1 commit intomasterfrom
cursor/optimize-footer-slide-animation-on-scroll-1308

Conversation

@tmrr13
Copy link
Copy Markdown
Owner

@tmrr13 tmrr13 commented Oct 1, 2025

Refactor footer slide-up animation to improve performance and smoothness.

The original JavaScript implementation caused jank and lags due to frequent direct DOM manipulations, complex calculations within the scroll handler, and inefficient throttling. This PR introduces optimized JavaScript solutions using CSS custom properties, translate3d for GPU acceleration, passive event listeners, and requestAnimationFrame, along with a modern CSS Scroll-Driven Animation fallback, to deliver a significantly smoother animation.


Open in Cursor Open in Web

Co-authored-by: goodslyfox <goodslyfox@gmail.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Oct 1, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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.

2 participants