Dear Rashida,
First of all, many thanks for your reply!
With the information you provided, I was able to adjust the template to some extent, and things are now working better. However, after applying the settings you suggested, I noticed the following issues:
1. Full-screen mode (e.g. on a 24-inch monitor)
When I click on the Home menu item, the page scrolls back to the top, but the navigation gets stuck on About, which is the first menu item after Home.
If I then manually scroll all the way to the top using the mouse, the Home menu item is correctly highlighted.
2. Tablet/Smartphone mode (hamburger menu)
When I am on the Home section and then, for example, resize the browser window to tablet size, scroll down the page and open the hamburger menu, Home is still highlighted. In other words, the menu and the currently visible section are not synchronized.
However, if I am on a section further down the page, such as Clients, and then scroll up or down and open the hamburger menu, the correct menu item corresponding to the currently visible section is highlighted.
3. Menu items briefly jumping between selections (hamburger menu)
There is another issue, which I suspect is related to the template's general behaviour.
When I click on a menu item in the hamburger menu that is more than one item away from the currently selected one, the menu items briefly get higlighted from one to another as the page scrolls. This creates a rather restless and distracting visual effect.
It would be much nicer if only the newly selected menu item were highlighted.
I suspect this happens because the template automatically updates the active menu item whenever a new section comes into view during scrolling.
4. The same behaviour in the regular desktop menu
Exactly the same thing happens in the regular navigation menu, for example in full-screen desktop mode.
When selecting a menu item that is several items away from the currently active one, each intermediate section briefly causes its corresponding menu item to be highlighted as the page scrolls past it.
5. Possible improvement
It would be great if this behaviour could somehow be prevented.
Perhaps a JavaScript expert knows a way to temporarily suspend the active menu item updates during automatic scrolling (something like pausing the UI updates) and then highlight only the destination menu item once the scrolling animation has finished.
That would make the navigation feel much smoother and more polished.
6. White Gap at the Top in Mobile View
And one more thing: When the browser window is resized and the main menu is replaced by the hamburger menu, a white strip of about 15–20 px remains at the top of the page. How can I get rid of it?
I'll share the link to my website in a hidden comment. If you need access to the admin backend, just let me know.
Best regards,
Ernst