Just starting out with CSS and HTML here, trying to figure out how to make an element become absolutely positioned once you scroll past it on the page.
Take a look at this example for reference: (no need for an account to test). As you scroll down, the black menu bar disappears and the white "How can we help you" menu becomes fixed in place.
I made a similar menu system as an example,
but I'm unsure where to begin in making it switch to absolute positioning when scrolled past. Appreciate any guidance you can provide!