Understanding the Intersection Observer API

The Intersection Observer API lets you detect when elements enter or leave the viewport - without scroll event listeners. Here's what it solves, how it works, and real patterns you can use today.