Socket
Socket
Sign inDemoInstall

shorter-js

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shorter-js - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

src/strings/bezierEasings.js

31

dist/shorter-js.esm.js
/*!
* shorter-js v0.1.5 (https://thednp.github.io/shorter-js/)
* shorter-js v0.1.6 (https://thednp.github.io/shorter-js/)
* Copyright 2019-2020 © dnp_theme

@@ -30,2 +30,30 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE)

var bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)'
};
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

@@ -172,2 +200,3 @@

mouseSwipeEvents: mouseSwipeEvents,
bezierEasings: bezierEasings,
animationDuration: animationDuration,

@@ -174,0 +203,0 @@ animationDelay: animationDelay,

4

dist/shorter-js.esm.min.js

@@ -1,2 +0,2 @@

// shorter-js v0.1.5 | dnp_theme © 2020 | MIT-License
var n="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",e="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.body.style?"webkitTransitionProperty":"transitionProperty",s="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",m=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),d="webkitPerspective"in document.head.style||"perspective"in document.head.style,c=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}(),l="webkitTransform"in document.head.style||"transform"in document.head.style,v="ontouchstart"in window||navigator.msMaxTouchPoints||!1,p="webkitAnimation"in document.head.style||"animation"in document.head.style,y="webkitTransition"in document.head.style||"transition"in document.head.style;function f(n,t,e,i){i=i||!1,n.addEventListener(t,e,i)}function h(n,t,e,i){i=i||!1,n.removeEventListener(t,e,i)}function w(n){var e=getComputedStyle(n),i=e[o],a=p&&i&&"none"!==i?parseFloat(e[t]):0;return isNaN(a)?0:1e3*a}function E(n){var t=getComputedStyle(n),e=t[r],i=y&&e&&"none"!==e?parseFloat(t[a]):0;return isNaN(i)?0:1e3*i}var b={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,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:s,transitionEndEvent:u,transitionProperty:r,isMobile:m,support3DTransform:d,supportPassive:c,supportTransform:l,supportTouch:v,supportAnimation:p,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:h,one:function(n,t,e,i){f(n,t,(function o(a){a.target===n&&(e(a),h(n,t,o,i))}),i)},emulateAnimationEnd:function(n,t){var e=0;w(n)?n.addEventListener(i,(function o(a){!e&&t(a),e=1,n.removeEventListener(i,o)})):setTimeout((function(){!e&&t(),e=1}),17)},emulateTransitionEnd:function(n,t){var e=0;E(n)?n.addEventListener(u,(function i(o){!e&&t(o),e=1,n.removeEventListener(u,i)})):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:!!c&&{passive:!0},getElementAnimationDuration:w,getElementAnimationDelay:function(n){var t=getComputedStyle(n),i=t[o],a=p&&i&&"none"!==i?parseFloat(t[e]):0;return isNaN(a)?0:1e3*a},getElementTransitionDuration:E,getElementTransitionDelay:function(n){var t=y?parseFloat(getComputedStyle(n)[s]):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 b;
// shorter-js v0.1.6 | dnp_theme © 2020 | MIT-License
var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],n="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.body.style?"webkitTransitionProperty":"transitionProperty",u="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),m="webkitPerspective"in document.head.style||"perspective"in document.head.style,d=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}(),l="webkitTransform"in document.head.style||"transform"in document.head.style,b="ontouchstart"in window||navigator.msMaxTouchPoints||!1,v="webkitAnimation"in document.head.style||"animation"in document.head.style,g="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 y(e,n,t,i){i=i||!1,e.removeEventListener(n,t,i)}function f(e){var t=getComputedStyle(e),i=t[o],a=v&&i&&"none"!==i?parseFloat(t[n]):0;return isNaN(a)?0:1e3*a}function E(e){var n=getComputedStyle(e),t=n[r],i=g&&t&&"none"!==t?parseFloat(n[a]):0;return isNaN(i)?0:1e3*i}var h={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"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:u,transitionEndEvent:s,transitionProperty:r,isMobile:c,support3DTransform:m,supportPassive:d,supportTransform:l,supportTouch:b,supportAnimation:v,supportTransition:g,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:y,one:function(e,n,t,i){p(e,n,(function o(a){a.target===e&&(t(a),y(e,n,o,i))}),i)},emulateAnimationEnd:function(e,n){var t=0;f(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;E(e)?e.addEventListener(s,(function i(o){!t&&n(o),t=1,e.removeEventListener(s,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:!!d&&{passive:!0},getElementAnimationDuration:f,getElementAnimationDelay:function(e){var n=getComputedStyle(e),i=n[o],a=v&&i&&"none"!==i?parseFloat(n[t]):0;return isNaN(a)?0:1e3*a},getElementTransitionDuration:E,getElementTransitionDelay:function(e){var n=g?parseFloat(getComputedStyle(e)[u]):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 h;
/*!
* shorter-js v0.1.5 (https://thednp.github.io/shorter-js/)
* shorter-js v0.1.6 (https://thednp.github.io/shorter-js/)
* Copyright 2019-2020 © dnp_theme

@@ -36,2 +36,30 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE)

var bezierEasings = {
linear: 'linear',
easingSinusoidalIn: 'cubic-bezier(0.47,0,0.745,0.715)',
easingSinusoidalOut: 'cubic-bezier(0.39,0.575,0.565,1)',
easingSinusoidalInOut: 'cubic-bezier(0.445,0.05,0.55,0.95)',
easingQuadraticIn: 'cubic-bezier(0.550,0.085,0.680,0.530)',
easingQuadraticOut: 'cubic-bezier(0.250,0.460,0.450,0.940)',
easingQuadraticInOut: 'cubic-bezier(0.455,0.030,0.515,0.955)',
easingCubicIn: 'cubic-bezier(0.55,0.055,0.675,0.19)',
easingCubicOut: 'cubic-bezier(0.215,0.61,0.355,1)',
easingCubicInOut: 'cubic-bezier(0.645,0.045,0.355,1)',
easingQuarticIn: 'cubic-bezier(0.895,0.03,0.685,0.22)',
easingQuarticOut: 'cubic-bezier(0.165,0.84,0.44,1)',
easingQuarticInOut: 'cubic-bezier(0.77,0,0.175,1)',
easingQuinticIn: 'cubic-bezier(0.755,0.05,0.855,0.06)',
easingQuinticOut: 'cubic-bezier(0.23,1,0.32,1)',
easingQuinticInOut: 'cubic-bezier(0.86,0,0.07,1)',
easingExponentialIn: 'cubic-bezier(0.95,0.05,0.795,0.035)',
easingExponentialOut: 'cubic-bezier(0.19,1,0.22,1)',
easingExponentialInOut: 'cubic-bezier(1,0,0,1)',
easingCircularIn: 'cubic-bezier(0.6,0.04,0.98,0.335)',
easingCircularOut: 'cubic-bezier(0.075,0.82,0.165,1)',
easingCircularInOut: 'cubic-bezier(0.785,0.135,0.15,0.86)',
easingBackIn: 'cubic-bezier(0.6,-0.28,0.735,0.045)',
easingBackOut: 'cubic-bezier(0.175,0.885,0.32,1.275)',
easingBackInOut: 'cubic-bezier(0.68,-0.55,0.265,1.55)'
};
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

@@ -178,2 +206,3 @@

mouseSwipeEvents: mouseSwipeEvents,
bezierEasings: bezierEasings,
animationDuration: animationDuration,

@@ -180,0 +209,0 @@ animationDelay: animationDelay,

@@ -1,2 +0,2 @@

// shorter-js v0.1.5 | dnp_theme © 2020 | MIT-License
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).SHORTER=e()}(this,(function(){"use strict";var n="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],e="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.body.style?"webkitTransitionProperty":"transitionProperty",s="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",m=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),d="webkitPerspective"in document.head.style||"perspective"in document.head.style,c=function(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});document.addEventListener("DOMContentLoaded",(function n(){document.removeEventListener("DOMContentLoaded",n,e)}),e)}catch(n){}return n}(),l="webkitTransform"in document.head.style||"transform"in document.head.style,v="ontouchstart"in window||navigator.msMaxTouchPoints||!1,f="webkitAnimation"in document.head.style||"animation"in document.head.style,p="webkitTransition"in document.head.style||"transition"in document.head.style;function y(n,e,t,i){i=i||!1,n.addEventListener(e,t,i)}function h(n,e,t,i){i=i||!1,n.removeEventListener(e,t,i)}function w(n){var t=getComputedStyle(n),i=t[o],a=f&&i&&"none"!==i?parseFloat(t[e]):0;return isNaN(a)?0:1e3*a}function E(n){var e=getComputedStyle(n),t=e[r],i=p&&t&&"none"!==t?parseFloat(e[a]):0;return isNaN(i)?0:1e3*i}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:e,animationDelay:t,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:s,transitionEndEvent:u,transitionProperty:r,isMobile:m,support3DTransform:d,supportPassive:c,supportTransform:l,supportTouch:v,supportAnimation:f,supportTransition:p,addClass:function(n,e){n.classList.add(e)},removeClass:function(n,e){n.classList.remove(e)},hasClass:function(n,e){return n.classList.contains(e)},on:y,off:h,one:function(n,e,t,i){y(n,e,(function o(a){a.target===n&&(t(a),h(n,e,o,i))}),i)},emulateAnimationEnd:function(n,e){var t=0;w(n)?n.addEventListener(i,(function o(a){!t&&e(a),t=1,n.removeEventListener(i,o)})):setTimeout((function(){!t&&e(),t=1}),17)},emulateTransitionEnd:function(n,e){var t=0;E(n)?n.addEventListener(u,(function i(o){!t&&e(o),t=1,n.removeEventListener(u,i)})):setTimeout((function(){!t&&e(),t=1}),17)},isElementInScrollRange:function(n){var e=n.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;return e.top<=t&&e.bottom>=0},isElementInViewport:function(n){var e=n.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:!!c&&{passive:!0},getElementAnimationDuration:w,getElementAnimationDelay:function(n){var e=getComputedStyle(n),i=e[o],a=f&&i&&"none"!==i?parseFloat(e[t]):0;return isNaN(a)?0:1e3*a},getElementTransitionDuration:E,getElementTransitionDelay:function(n){var e=p?parseFloat(getComputedStyle(n)[s]):0;return e="number"!=typeof e||isNaN(e)?0:1e3*e},queryElement:function(n,e){var t=e&&e instanceof Element?e:document;return n instanceof Element?n:t.querySelector(n)},tryWrapper:function(n,e){try{n()}catch(n){console.error(e+" "+n)}}}}));
// shorter-js v0.1.6 | 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="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",t="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",u="webkitTransition"in document.body.style?"webkitTransitionProperty":"transitionProperty",r="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),m="webkitPerspective"in document.head.style||"perspective"in document.head.style,d=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}(),l="webkitTransform"in document.head.style||"transform"in document.head.style,b="ontouchstart"in window||navigator.msMaxTouchPoints||!1,g="webkitAnimation"in document.head.style||"animation"in document.head.style,p="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 f(e,n,t,i){i=i||!1,e.removeEventListener(n,t,i)}function y(e){var t=getComputedStyle(e),i=t[o],a=g&&i&&"none"!==i?parseFloat(t[n]):0;return isNaN(a)?0:1e3*a}function E(e){var n=getComputedStyle(e),t=n[u],i=p&&t&&"none"!==t?parseFloat(n[a]):0;return isNaN(i)?0:1e3*i}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"},bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:n,animationDelay:t,animationName:o,animationEndEvent:i,transitionDuration:a,transitionDelay:r,transitionEndEvent:s,transitionProperty:u,isMobile:c,support3DTransform:m,supportPassive:d,supportTransform:l,supportTouch:b,supportAnimation:g,supportTransition:p,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:f,one:function(e,n,t,i){v(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;E(e)?e.addEventListener(s,(function i(o){!t&&n(o),t=1,e.removeEventListener(s,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:!!d&&{passive:!0},getElementAnimationDuration:y,getElementAnimationDelay:function(e){var n=getComputedStyle(e),i=n[o],a=g&&i&&"none"!==i?parseFloat(n[t]):0;return isNaN(a)?0:1e3*a},getElementTransitionDuration:E,getElementTransitionDelay:function(e){var n=p?parseFloat(getComputedStyle(e)[r]):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.5",
"version": "0.1.6",
"description": "A small ES6+ library with various JavaScript tools useful for creating light libraries.",

@@ -5,0 +5,0 @@ "main": "dist/shorter-js.min.js",

@@ -14,2 +14,3 @@ // strings FIRST

import transitionEndEvent from './strings/transitionEndEvent.js'
import bezierEasings from './strings/bezierEasings.js'

@@ -22,3 +23,3 @@ // boolean

import supportTouch from './boolean/supportTouch.js'
import supportAnimation from './boolean/supportAnimation.js'
import supportAnimation from './boolean/supportAnimation.js'
import supportTransition from './boolean/supportTransition.js'

@@ -54,2 +55,3 @@

mouseSwipeEvents,
bezierEasings,
animationDuration,

@@ -56,0 +58,0 @@ animationDelay,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc