The `IntersectionObserver` is used to detect when an element crosses-over (intersects) or gets within a given range of a `root` element.
It's primary use-case is to observe when elements are within (or close to) a scroll viewport, to trigger lazy-loading of content or purposes of telemetry (ad impressions). The `IntersectionObserver` API negates the need to perform costly measurements inside `'scroll'` handlers, which is a very common cause of jank on the web today.
Currently the `IntersectionObserver` is only available in Chrome Canary, but there is a bug [3] tracking Gecko implementation.
LINKS
[1] Live Demo (requires Chrome Canary) - http://wilsonpage.github.io/in-sixty/...
[2] Explainer - https://github.com/WICG/IntersectionO...
[3] Gecko Bug - https://bugzilla.mozilla.org/show_bug...
[4] Twitter - / wilsonpage
In questa pagina del sito puoi guardare il video online IntersectionObserver API - In 60 Seconds della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Wilson Page 12 aprile 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,629 volte e gli è piaciuto 101 spettatori. Buona visione!