mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
25 lines
684 B
JavaScript
25 lines
684 B
JavaScript
/*!
|
|
{
|
|
"name": "Intersection Observer",
|
|
"property": "intersectionobserver",
|
|
"caniuse": "intersectionobserver",
|
|
"tags": ["dom"],
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://w3c.github.io/IntersectionObserver/"
|
|
}, {
|
|
"name": "IntersectionObserver polyfill",
|
|
"href": "https://github.com/w3c/IntersectionObserver/tree/master/polyfill"
|
|
}, {
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en/docs/Web/API/Intersection_Observer_API"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Determines if Intersection Observer API is available.
|
|
*/
|
|
define(['Modernizr'], function (Modernizr) {
|
|
Modernizr.addTest('intersectionobserver', 'IntersectionObserver' in window);
|
|
});
|