Okay, I'll admit this isn't quite an Astro question, but if you take a look at this website:
...if you scroll down, there is a div that once you scroll down to it, the div becomes fixed on screen and scrolls through its elements horizontally. Once you get the end of the div's horizontal content, the div stops being fixed and the user can scroll further down through the page.
- How do I detect when to make the div fixed and start scrolling through horizontal content?
- How do I make it such that when I scroll to the end of the horizontal content, the div is no longer fixed and I can scroll down to the rest of the page?
Please let me know what I should do. I'm using Astro.js with JS, and HTML and CSS.