title: How would you implement code highlighting on scroll?
body: <p>I'm looking to create a blog page similar to stripes documentation. When the user scrolls the page, I would like to trigger different highlights on the code. <a href="https://stripe.com/docs/payments/quickstart" rel="nofollow noreferrer">Check out stripes documentation here</a> and see that the code gets highlighted based on the content when you scroll. Is there a library that does this already, or what is the best approach to tackle this myself?</p>