N
N
NikSIk312020-04-14 23:09:12
JavaScript
NikSIk31, 2020-04-14 23:09:12

How to highlight website menu when scrolling?

How to highlight the site menu on the landing page from the current active section? For example, if I scrolled to "Buns", then the menu item with buns is active, and so on.

Scroll directly with a normal mouse. That is, the section on the screen - highlighted acc. menu. If with JS, what is the best way to check for a section on the screen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2020-04-14
@NikSIk31

Google Scrollspy
to the first link in Google https://codepen.io/zchee/pen/ogzvZZ

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question