Forget about the code,
My question is, how could I apply your plugin to the Primary Menu Bar in Divi?
On this page: https://www.ehtl.lu/manifestations/ it’s the white Menu on Top,
I want to have the white menu sticky when scrolling , this means the blue section called “manifestations” should be coverd by the menu when scrolling.
When the next section (white with text) reaches the sticky menu, sticky should stop and the menu should be pushed out of the screen by the white text section.
This is what I have basicaly done whit the code, but with the code the menu is not pushed out of the screen but it disapears at one exact moment, by the way this code applies to the whole site and I do not want that, your plugin would be better because it may be applied to one single page.
If this is not clear , I would try to explain better, but english is not my language, I could also write in german or french.
Thanks for your plugin and your help.