fast-animations
Advanced tools
Comparing version 1.0.1 to 1.0.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const hasDom = !!(typeof window !== 'undefined' && | ||
window.document && | ||
window.document.createElement); | ||
exports.capabilities = { | ||
workletSupported: !!window && ('animationWorklet' in CSS), | ||
waapiSupported: !!window && ('animate' in document.createElement('div')) | ||
workletSupported: hasDom && ('animationWorklet' in CSS), | ||
waapiSupported: hasDom && ('animate' in document.createElement('div')) | ||
}; | ||
//# sourceMappingURL=capabilities.js.map |
@@ -0,4 +1,8 @@ | ||
const hasDom = !!(typeof window !== 'undefined' && | ||
window.document && | ||
window.document.createElement); | ||
export const capabilities = { | ||
workletSupported: !!window && ('animationWorklet' in CSS), | ||
waapiSupported: !!window && ('animate' in document.createElement('div')) | ||
workletSupported: hasDom && ('animationWorklet' in CSS), | ||
waapiSupported: hasDom && ('animate' in document.createElement('div')) | ||
}; |
{ | ||
"name": "fast-animations", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
30650
606