Answer the question
In order to leave comments, you need to log in
How to fix the "congress" of the site when opening a modal window?
On the mobile version, the menu goes in the form of a modal window and when using the anchor, the menu does not close, how to fix it? add a class to the link itself?
and another problem, small, but I can’t understand what’s the matter :( When you open any modal window, the site slides a little, crawls behind the browser, when you click on Buy Subscription, you can clearly see how the navigation crawls outside the window
Here you can look
Answer the question
In order to leave comments, you need to log in
As for climbing, overflow: hidden is added to the body; and padding-right: 17px; to compensate for the lack of a scrollbar... but since the header has position: fixed; then it does not apply to him. Apparently on the header you also need to add the style padding-right: 17px; when opening a modal window.
Regarding the closing of the modal menu window after scrolling to the anchor, you need to remove the active class after the scroll to the anchor is completed, but since you don’t even have a scroll animation, then simply on the click event on the link, the active class from menu trans_800 should be removed. But since I assume that you use libraries and various plugins, you need to look at how to set it up in the documentation...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question