How can I make multiple on scroll fixed headers/navbars that stick at the very top of the page?
Does anyone know how to make multiple on scroll fixed headers? I've checked answers such as this . It's kind of what I want, but I want that header to stop before another header and when the first header gets scrolled past the second header should be taking the first header's place and stick at the very top of the screen. But they don't work for me because they're using libraries that I'm not working with(jQuery, etc.) and they are overly, overly complicated. I've tried to do this, I got it to work with getBoundingClientRect() with only 2 headers. I've provided the HTML&CSS part here: html,