Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for IntersectionObserver.
Developer library 6
Syntax sections
n and arguments. Example showing "corrected" examples below ```js-nolint querySelector(selector) // responseStr = element.querySelector(selector) new IntersectionObserver(callback, options) // const observer = new IntersectionObserver(callback, options) ``` ### Constructors and methods #### Syntax block Start with a syntax block, like this (from the IntersectionObserver() constructor page): ```js-no
Firefox 141 release notes for developers
nting devices (such as pens) interacting with the screen simultaneously. ([Firefox bug 1968400](https://bugzil.la/1968400)). - The scrollMargin property of the IntersectionObserver interface is now supported. It adds a margin to all nested scroll containers within the root element of the observer, which allows targets inside those elements to be observed before (or after) they are scrolled into view—instead of only w
Firefox 96 release notes for developers
: HTMLCanvasElement.toDataURL(), HTMLCanvasElement.toBlob(), and OffscreenCanvas.toBlob. ([Firefox bug 1511670](https://bugzil.la/1511670)). #### DOM - The IntersectionObserver() constructor now sets the default `rootMargin` if an empty string is passed in the associated parameter option, instead of throwing an exception ([Firefox bug 1738791](https://bugzil.la/1738791)). #### Media, WebRTC, and Web Audio - A n
Firefox 76 release notes for developers
n/href) or [`<meta http-equiv="refresh">`](/docs/Web/HTML/Reference/Elements/meta) are now blocked (see [Firefox bug 1528305](https://bugzil.la/1528305). - The IntersectionObserver() constructor now accepts a Document object as its `root`, as well as an Element object ([Firefox bug 1623623](https://bugzil.la/1623623)). This lets you explicitly use a window's entire content area as the intersection bounds. - The [Fetc
js13kGames: Progressive loading
r_API) will load target images only when the user scrolls down, causing them to display in the viewport. Here's what the relevant code looks like: ```js if ("IntersectionObserver" in window) { const observer = new IntersectionObserver((items, observer) => { items.forEach((item) => { if (item.isIntersecting) { loadImages(item.target); observer.unobserve(item.target); } }); });
Scroll-driven animation timelines
s CSS scroll-driven animations are performant. JavaScript scroll-driven animations require [`scroll`](/docs/Web/API/Document/scroll_event) event listeners and IntersectionObserver objects on the main thread to track elements across the [scrollport](/docs/Glossary/Scroll_container#scrollport). Any time you rely on the main thread to render effects with JavaScript, you run the risk of blocking the main thread, which c