Skip to content

Optimize the NavBar Scaling using will-change-transform #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fgrgic
Copy link
Contributor

@fgrgic fgrgic commented Aug 8, 2025

Description

Changes:

  • Removed: throttleWithTrailingInvocation utility (no longer used)
  • Replaced: Throttled scroll handler with direct event listener
  • Updated: All animations to use transform scale instead of size/font changes
  • Added: will-change-transform: tells the browser to create a separate GPU layer for an element, so CSS transforms run smoothly without expensive layout recalculations.

Contributor Checklist

Make sure to do the following steps if they are applicable to your PR:

@fgrgic fgrgic marked this pull request as ready for review August 8, 2025 16:36
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.

1 participant