It is necessary to make a similar menu, according to the functionality. What would the main section open when scrolling and show which subsection you are on, and also when you move to the next section, the previous section closes.

here is an example link to an example

enter image description here

also fixed. in which direction should I look for the answer to my question.

Closed due to the fact that off-topic participants Sasha Omelchenko , AK , Mr. Black , Jarvis_J , 0xdb Jun 28 '18 at 23:50 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Learning tasks are allowed as questions only on the condition that you tried to solve them yourself before asking a question . Please edit the question and indicate what caused you difficulties in solving the problem. For example, give the code you wrote, trying to solve the problem "- Sasha Omelchenko, Mr. Black, 0xdb
If the question can be reformulated according to the rules set out in the certificate , edit it .

1 answer 1

In the example, the ScrollSpy component from Bootstrap is most likely used. Here's a look - it is also used on the bootstrap site, in the example even the look is very similar.