shorter-js
Advanced tools
Comparing version 0.1.3 to 0.1.4
/*! | ||
* shorter-js v0.1.3 (https://thednp.github.io/shorter-js/) | ||
* shorter-js v0.1.4 (https://thednp.github.io/shorter-js/) | ||
* Copyright 2019-2020 © dnp_theme | ||
@@ -14,17 +14,17 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE) | ||
var animationDuration = 'webkitAnimationDuration' in document.body.style ? 'webkitAnimationDuration' : 'animationDuration'; | ||
var animationDuration = 'webkitAnimationDuration' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration'; | ||
var animationDelay = 'webkitAnimationDelay' in document.body.style ? 'webkitAnimationDelay' : 'animationDelay'; | ||
var animationDelay = 'webkitAnimationDelay' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay'; | ||
var animationEndEvent = 'webkitAnimation' in document.body.style ? 'webkitAnimationEnd' : 'animationend'; | ||
var animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend'; | ||
var transitionDuration = 'webkitTransition' in document.body.style ? 'webkitTransitionDuration' : 'transitionDuration'; | ||
var transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration'; | ||
var transitionDelay = 'webkitTransition' in document.body.style ? 'webkitTransitionDelay' : 'transitionDelay'; | ||
var transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay'; | ||
var transitionEndEvent = 'webkitTransition' in document.body.style ? 'webkitTransitionEnd' : 'transitionend'; | ||
var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend'; | ||
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); | ||
var support3DTransform = 'webkitPerspective' in document.body.style || 'perspective' in document.body.style; | ||
var support3DTransform = 'webkitPerspective' in document.head.style || 'perspective' in document.head.style; | ||
@@ -46,9 +46,9 @@ var supportPassive = (function () { | ||
var supportTransform = 'webkitTransform' in document.body.style || 'transform' in document.body.style; | ||
var supportTransform = 'webkitTransform' in document.head.style || 'transform' in document.head.style; | ||
var supportTouch = ('ontouchstart' in window || navigator.msMaxTouchPoints) || false; | ||
var supportAnimation = 'webkitAnimation' in document.body.style || 'animation' in document.body.style; | ||
var supportAnimation = 'webkitAnimation' in document.head.style || 'animation' in document.head.style; | ||
var supportTransition = 'webkitTransition' in document.body.style || 'transition' in document.body.style; | ||
var supportTransition = 'webkitTransition' in document.head.style || 'transition' in document.head.style; | ||
@@ -55,0 +55,0 @@ function addClass(element,classNAME) { |
@@ -1,2 +0,2 @@ | ||
// shorter-js v0.1.3 | dnp_theme © 2020 | MIT-License | ||
var n="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimationDuration"in document.body.style?"webkitAnimationDuration":"animationDuration",e="webkitAnimationDelay"in document.body.style?"webkitAnimationDelay":"animationDelay",o="webkitAnimation"in document.body.style?"webkitAnimationEnd":"animationend",i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.body.style?"webkitTransitionDelay":"transitionDelay",r="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),u="webkitPerspective"in document.body.style||"perspective"in document.body.style,m=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});document.addEventListener("DOMContentLoaded",(function n(){document.removeEventListener("DOMContentLoaded",n,t)}),t)}catch(n){}return n}(),d="webkitTransform"in document.body.style||"transform"in document.body.style,c="ontouchstart"in window||navigator.msMaxTouchPoints||!1,l="webkitAnimation"in document.body.style||"animation"in document.body.style,y="webkitTransition"in document.body.style||"transition"in document.body.style;function v(n,t,e,o){o=o||!1,n.addEventListener(t,e,o)}function p(n,t,e,o){o=o||!1,n.removeEventListener(t,e,o)}function f(n){var e=l?parseFloat(getComputedStyle(n)[t]):0;return e="number"!=typeof e||isNaN(e)?0:1e3*e}function b(n){var t=y?parseFloat(getComputedStyle(n)[i]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t}var E={mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:n,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},animationDuration:t,animationDelay:e,transitionDuration:i,transitionDelay:a,animationEndEvent:o,transitionEndEvent:r,isMobile:s,support3DTransform:u,supportPassive:m,supportTransform:d,supportTouch:c,supportAnimation:l,supportTransition:y,addClass:function(n,t){n.classList.add(t)},removeClass:function(n,t){n.classList.remove(t)},hasClass:function(n,t){return n.classList.contains(t)},on:v,off:p,one:function(n,t,e,o){v(n,t,(function i(a){a.target===n&&(e(a),p(n,t,i,o))}),o)},emulateAnimationEnd:function(n,t){var e=0;f(n)?n.addEventListener(o,(function i(a){!e&&t(a),e=1,n.removeEventListener(o,i)})):setTimeout((function(){!e&&t(),e=1}),17)},emulateTransitionEnd:function(n,t){var e=0;b(n)?n.addEventListener(r,(function o(i){!e&&t(i),e=1,n.removeEventListener(r,o)})):setTimeout((function(){!e&&t(),e=1}),17)},isElementInScrollRange:function(n){var t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight;return t.top<=e&&t.bottom>=0},isElementInViewport:function(n){var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!m&&{passive:!0},getElementAnimationDuration:f,getElementAnimationDelay:function(n){var t=l?parseFloat(getComputedStyle(n)[e]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t},getElementTransitionDuration:b,getElementTransitionDelay:function(n){var t=y?parseFloat(getComputedStyle(n)[a]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t},queryElement:function(n,t){var e=t&&t instanceof Element?t:document;return n instanceof Element?n:e.querySelector(n)},tryWrapper:function(n,t){try{n()}catch(n){console.error(t+" "+n)}}};export default E; | ||
// shorter-js v0.1.4 | dnp_theme © 2020 | MIT-License | ||
var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimationDuration"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimationDelay"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",r="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),u="webkitPerspective"in document.head.style||"perspective"in document.head.style,m=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){}return e}(),d="webkitTransform"in document.head.style||"transform"in document.head.style,c="ontouchstart"in window||navigator.msMaxTouchPoints||!1,l="webkitAnimation"in document.head.style||"animation"in document.head.style,v="webkitTransition"in document.head.style||"transition"in document.head.style;function p(e,n,t,i){i=i||!1,e.addEventListener(n,t,i)}function f(e,n,t,i){i=i||!1,e.removeEventListener(n,t,i)}function y(e){var t=l?parseFloat(getComputedStyle(e)[n]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t}function h(e){var n=v?parseFloat(getComputedStyle(e)[o]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}var E={mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},animationDuration:n,animationDelay:t,transitionDuration:o,transitionDelay:a,animationEndEvent:i,transitionEndEvent:r,isMobile:s,support3DTransform:u,supportPassive:m,supportTransform:d,supportTouch:c,supportAnimation:l,supportTransition:v,addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:p,off:f,one:function(e,n,t,i){p(e,n,(function o(a){a.target===e&&(t(a),f(e,n,o,i))}),i)},emulateAnimationEnd:function(e,n){var t=0;y(e)?e.addEventListener(i,(function o(a){!t&&n(a),t=1,e.removeEventListener(i,o)})):setTimeout((function(){!t&&n(),t=1}),17)},emulateTransitionEnd:function(e,n){var t=0;h(e)?e.addEventListener(r,(function i(o){!t&&n(o),t=1,e.removeEventListener(r,i)})):setTimeout((function(){!t&&n(),t=1}),17)},isElementInScrollRange:function(e){var n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!m&&{passive:!0},getElementAnimationDuration:y,getElementAnimationDelay:function(e){var n=l?parseFloat(getComputedStyle(e)[t]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n},getElementTransitionDuration:h,getElementTransitionDelay:function(e){var n=v?parseFloat(getComputedStyle(e)[a]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n},queryElement:function(e,n){var t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},tryWrapper:function(e,n){try{e()}catch(e){console.error(n+" "+e)}}};export default E; |
/*! | ||
* shorter-js v0.1.3 (https://thednp.github.io/shorter-js/) | ||
* shorter-js v0.1.4 (https://thednp.github.io/shorter-js/) | ||
* Copyright 2019-2020 © dnp_theme | ||
@@ -20,17 +20,17 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE) | ||
var animationDuration = 'webkitAnimationDuration' in document.body.style ? 'webkitAnimationDuration' : 'animationDuration'; | ||
var animationDuration = 'webkitAnimationDuration' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration'; | ||
var animationDelay = 'webkitAnimationDelay' in document.body.style ? 'webkitAnimationDelay' : 'animationDelay'; | ||
var animationDelay = 'webkitAnimationDelay' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay'; | ||
var animationEndEvent = 'webkitAnimation' in document.body.style ? 'webkitAnimationEnd' : 'animationend'; | ||
var animationEndEvent = 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend'; | ||
var transitionDuration = 'webkitTransition' in document.body.style ? 'webkitTransitionDuration' : 'transitionDuration'; | ||
var transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration'; | ||
var transitionDelay = 'webkitTransition' in document.body.style ? 'webkitTransitionDelay' : 'transitionDelay'; | ||
var transitionDelay = 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay'; | ||
var transitionEndEvent = 'webkitTransition' in document.body.style ? 'webkitTransitionEnd' : 'transitionend'; | ||
var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend'; | ||
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); | ||
var support3DTransform = 'webkitPerspective' in document.body.style || 'perspective' in document.body.style; | ||
var support3DTransform = 'webkitPerspective' in document.head.style || 'perspective' in document.head.style; | ||
@@ -52,9 +52,9 @@ var supportPassive = (function () { | ||
var supportTransform = 'webkitTransform' in document.body.style || 'transform' in document.body.style; | ||
var supportTransform = 'webkitTransform' in document.head.style || 'transform' in document.head.style; | ||
var supportTouch = ('ontouchstart' in window || navigator.msMaxTouchPoints) || false; | ||
var supportAnimation = 'webkitAnimation' in document.body.style || 'animation' in document.body.style; | ||
var supportAnimation = 'webkitAnimation' in document.head.style || 'animation' in document.head.style; | ||
var supportTransition = 'webkitTransition' in document.body.style || 'transition' in document.body.style; | ||
var supportTransition = 'webkitTransition' in document.head.style || 'transition' in document.head.style; | ||
@@ -61,0 +61,0 @@ function addClass(element,classNAME) { |
@@ -1,2 +0,2 @@ | ||
// shorter-js v0.1.3 | dnp_theme © 2020 | MIT-License | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).SHORTER=t()}(this,(function(){"use strict";var n="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimationDuration"in document.body.style?"webkitAnimationDuration":"animationDuration",e="webkitAnimationDelay"in document.body.style?"webkitAnimationDelay":"animationDelay",o="webkitAnimation"in document.body.style?"webkitAnimationEnd":"animationend",i="webkitTransition"in document.body.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.body.style?"webkitTransitionDelay":"transitionDelay",r="webkitTransition"in document.body.style?"webkitTransitionEnd":"transitionend",s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),u="webkitPerspective"in document.body.style||"perspective"in document.body.style,m=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});document.addEventListener("DOMContentLoaded",(function n(){document.removeEventListener("DOMContentLoaded",n,t)}),t)}catch(n){}return n}(),d="webkitTransform"in document.body.style||"transform"in document.body.style,c="ontouchstart"in window||navigator.msMaxTouchPoints||!1,l="webkitAnimation"in document.body.style||"animation"in document.body.style,y="webkitTransition"in document.body.style||"transition"in document.body.style;function f(n,t,e,o){o=o||!1,n.addEventListener(t,e,o)}function v(n,t,e,o){o=o||!1,n.removeEventListener(t,e,o)}function p(n){var e=l?parseFloat(getComputedStyle(n)[t]):0;return e="number"!=typeof e||isNaN(e)?0:1e3*e}function b(n){var t=y?parseFloat(getComputedStyle(n)[i]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t}return{mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:n,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},animationDuration:t,animationDelay:e,transitionDuration:i,transitionDelay:a,animationEndEvent:o,transitionEndEvent:r,isMobile:s,support3DTransform:u,supportPassive:m,supportTransform:d,supportTouch:c,supportAnimation:l,supportTransition:y,addClass:function(n,t){n.classList.add(t)},removeClass:function(n,t){n.classList.remove(t)},hasClass:function(n,t){return n.classList.contains(t)},on:f,off:v,one:function(n,t,e,o){f(n,t,(function i(a){a.target===n&&(e(a),v(n,t,i,o))}),o)},emulateAnimationEnd:function(n,t){var e=0;p(n)?n.addEventListener(o,(function i(a){!e&&t(a),e=1,n.removeEventListener(o,i)})):setTimeout((function(){!e&&t(),e=1}),17)},emulateTransitionEnd:function(n,t){var e=0;b(n)?n.addEventListener(r,(function o(i){!e&&t(i),e=1,n.removeEventListener(r,o)})):setTimeout((function(){!e&&t(),e=1}),17)},isElementInScrollRange:function(n){var t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight;return t.top<=e&&t.bottom>=0},isElementInViewport:function(n){var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!m&&{passive:!0},getElementAnimationDuration:p,getElementAnimationDelay:function(n){var t=l?parseFloat(getComputedStyle(n)[e]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t},getElementTransitionDuration:b,getElementTransitionDelay:function(n){var t=y?parseFloat(getComputedStyle(n)[a]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t},queryElement:function(n,t){var e=t&&t instanceof Element?t:document;return n instanceof Element?n:e.querySelector(n)},tryWrapper:function(n,t){try{n()}catch(n){console.error(t+" "+n)}}}})); | ||
// shorter-js v0.1.4 | dnp_theme © 2020 | MIT-License | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).SHORTER=n()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimationDuration"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimationDelay"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",r="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",s=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),u="webkitPerspective"in document.head.style||"perspective"in document.head.style,m=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,n)}),n)}catch(e){}return e}(),d="webkitTransform"in document.head.style||"transform"in document.head.style,c="ontouchstart"in window||navigator.msMaxTouchPoints||!1,l="webkitAnimation"in document.head.style||"animation"in document.head.style,f="webkitTransition"in document.head.style||"transition"in document.head.style;function v(e,n,t,i){i=i||!1,e.addEventListener(n,t,i)}function p(e,n,t,i){i=i||!1,e.removeEventListener(n,t,i)}function y(e){var t=l?parseFloat(getComputedStyle(e)[n]):0;return t="number"!=typeof t||isNaN(t)?0:1e3*t}function h(e){var n=f?parseFloat(getComputedStyle(e)[o]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n}return{mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseHoverEvents:e,touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseout"},animationDuration:n,animationDelay:t,transitionDuration:o,transitionDelay:a,animationEndEvent:i,transitionEndEvent:r,isMobile:s,support3DTransform:u,supportPassive:m,supportTransform:d,supportTouch:c,supportAnimation:l,supportTransition:f,addClass:function(e,n){e.classList.add(n)},removeClass:function(e,n){e.classList.remove(n)},hasClass:function(e,n){return e.classList.contains(n)},on:v,off:p,one:function(e,n,t,i){v(e,n,(function o(a){a.target===e&&(t(a),p(e,n,o,i))}),i)},emulateAnimationEnd:function(e,n){var t=0;y(e)?e.addEventListener(i,(function o(a){!t&&n(a),t=1,e.removeEventListener(i,o)})):setTimeout((function(){!t&&n(),t=1}),17)},emulateTransitionEnd:function(e,n){var t=0;h(e)?e.addEventListener(r,(function i(o){!t&&n(o),t=1,e.removeEventListener(r,i)})):setTimeout((function(){!t&&n(),t=1}),17)},isElementInScrollRange:function(e){var n=e.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return n.top<=t&&n.bottom>=0},isElementInViewport:function(e){var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!m&&{passive:!0},getElementAnimationDuration:y,getElementAnimationDelay:function(e){var n=l?parseFloat(getComputedStyle(e)[t]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n},getElementTransitionDuration:h,getElementTransitionDelay:function(e){var n=f?parseFloat(getComputedStyle(e)[a]):0;return n="number"!=typeof n||isNaN(n)?0:1e3*n},queryElement:function(e,n){var t=n&&n instanceof Element?n:document;return e instanceof Element?e:t.querySelector(e)},tryWrapper:function(e,n){try{e()}catch(e){console.error(n+" "+e)}}}})); |
{ | ||
"name": "shorter-js", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A small ES6/ES7 library with various JavaScript tools useful for creating light libraries.", | ||
@@ -5,0 +5,0 @@ "main": "dist/shorter-js.min.js", |
@@ -1,1 +0,1 @@ | ||
export default 'webkitPerspective' in document.body.style || 'perspective' in document.body.style; | ||
export default 'webkitPerspective' in document.head.style || 'perspective' in document.head.style; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitAnimation' in document.body.style || 'animation' in document.body.style; | ||
export default 'webkitAnimation' in document.head.style || 'animation' in document.head.style; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitTransform' in document.body.style || 'transform' in document.body.style; | ||
export default 'webkitTransform' in document.head.style || 'transform' in document.head.style; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitTransition' in document.body.style || 'transition' in document.body.style; | ||
export default 'webkitTransition' in document.head.style || 'transition' in document.head.style; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitAnimationDelay' in document.body.style ? 'webkitAnimationDelay' : 'animationDelay'; | ||
export default 'webkitAnimationDelay' in document.head.style ? 'webkitAnimationDelay' : 'animationDelay'; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitAnimationDuration' in document.body.style ? 'webkitAnimationDuration' : 'animationDuration'; | ||
export default 'webkitAnimationDuration' in document.head.style ? 'webkitAnimationDuration' : 'animationDuration'; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitAnimation' in document.body.style ? 'webkitAnimationEnd' : 'animationend'; | ||
export default 'webkitAnimation' in document.head.style ? 'webkitAnimationEnd' : 'animationend'; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitTransition' in document.body.style ? 'webkitTransitionDelay' : 'transitionDelay'; | ||
export default 'webkitTransition' in document.head.style ? 'webkitTransitionDelay' : 'transitionDelay'; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitTransition' in document.body.style ? 'webkitTransitionDuration' : 'transitionDuration'; | ||
export default 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration'; |
@@ -1,1 +0,1 @@ | ||
export default 'webkitTransition' in document.body.style ? 'webkitTransitionEnd' : 'transitionend'; | ||
export default 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend'; |