K
K
karbayev2021-11-17 22:05:03
css
karbayev, 2021-11-17 22:05:03

When scrolling the site, how to add a new item to the top pinned menu?

Good afternoon! I have a menu on the site that is fixed at the top when scrolling the site. Now there is a task when scrolling to add a new menu item, but so that it appears only at the moment when the site is scrolled. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex_mos, 2021-11-17
@Alex_mos

Using js to track the scroll and create a new element and add it to the menu. Or you can create it right away, but hide it. When the desired scroll value is reached, show it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question