The Intersection Observer API is not really new, but it’s not talked about a lot still. Browser support is pretty decent for it now.
“ The Intersection Observer API lets code register a callback function that is executed whenever an element they wish to monitor enters or exits another element (or the viewport), or when the amount by which the two intersect changes by a requested amount.“
I just used Intersection Observer to implement some scroll effects. Pretty neat and useful
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.