Polyfilling the Intersection Observer API the right way
The Intersection Observer API has great support across browsers, but it's advised to use its polyfill if Internet Explorer support is required.
Apr 22, 20225 min read893

Search for a command to run...
Articles tagged with #javascript
The Intersection Observer API has great support across browsers, but it's advised to use its polyfill if Internet Explorer support is required.

I faced a blocker while creating a quick POC using the Intersection Observer API on CodePen. And I wrote down how to fix it so you can save some time.

Learn how to easily update a navigation based on the scroll position without listening to the scroll 馃槑.

A practical introduction about the Intersection Observer, how it works and how to leverage some of its different options and methods.
