Repository navigation
Header scroll fix - #113
Open
omarscoding wants to merge 4 commits into
Open
omarscoding wants to merge 4 commits into
omarscoding wants to merge 4 commits into
Conversation
RLee64
requested changes
Oct 19, 2026
Brining my branch up to date with main
…o more following page when scrolling down
This branch has not been deployed
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.


This pull request significantly improves the navigation tab highlighting in the
Headercomponent by introducing a single animated "pill" indicator that smoothly follows the active tab. The implementation leveragesmotionprimitives anduseLayoutEffectfor more precise and visually appealing animation, while also making minor improvements to scroll restoration and header stickiness.Navigation tab animation and UI improvements:
motion.span) that slides smoothly to the active tab usinguseMotionValue,animate, anduseLayoutEffect, replacing the previous per-tab highlight approach. This ensures the indicator never flashes at an incorrect position and adapts responsively to layout changes. [1] [2] [3]navRef,tabRefs) to navigation and tab elements to calculate and animate the pill's position and width based on the active tab.pillTransitionconstant for consistent spring animation of the pill.General UI/UX improvements:
sticky top-0 z-50classes, ensuring it remains visible during scrolling.App.tsxfromuseEffecttouseLayoutEffectto prevent visual flicker when navigating between routes. [1] [2]These changes collectively enhance the navigation experience, providing smoother visual feedback and a more polished look and feel.