jquery.easing
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -23,8 +23,3 @@ { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "BSD", | ||
"url": "https://raw.githubusercontent.com/gdsmith/jquery.easing/master/LICENSE" | ||
} | ||
], | ||
"license": "BSD-3-Clause", | ||
"ignore": [ | ||
@@ -31,0 +26,0 @@ "**/.*", |
/* | ||
* jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/ | ||
* jQuery Easing v1.4.0 - http://gsgd.co.uk/sandbox/jquery/easing/ | ||
* Open source under the BSD License. | ||
@@ -9,136 +9,159 @@ * Copyright © 2008 George McGinley Smith | ||
// t: current time, b: begInnIng value, c: change In value, d: duration | ||
(function($){$.easing['jswing'] = $.easing['swing']; | ||
(function (factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['jquery'], function ($) { | ||
return factory($); | ||
}); | ||
} else if (typeof module === "object" && typeof module.exports === "object") { | ||
exports = factory(require('jquery')); | ||
} else { | ||
factory(jQuery); | ||
} | ||
})(function($){ | ||
// Preserve the original jQuery "swing" easing as "jswing" | ||
$.easing['jswing'] = $.easing['swing']; | ||
var pow = Math.pow, | ||
sqrt = Math.sqrt, | ||
sin = Math.sin, | ||
cos = Math.cos, | ||
PI = Math.PI, | ||
c1 = 1.70158, | ||
c2 = c1 * 1.525, | ||
c3 = c1 + 1, | ||
c4 = ( 2 * PI ) / 3, | ||
c5 = ( 2 * PI ) / 4.5; | ||
// x is the fraction of animation progress, in the range 0..1 | ||
function bounceOut(x) { | ||
var n1 = 7.5625, | ||
d1 = 2.75; | ||
if ( x < 1/d1 ) { | ||
return n1*x*x; | ||
} else if ( x < 2/d1 ) { | ||
return n1*(x-=(1.5/d1))*x + .75; | ||
} else if ( x < 2.5/d1 ) { | ||
return n1*(x-=(2.25/d1))*x + .9375; | ||
} else { | ||
return n1*(x-=(2.625/d1))*x + .984375; | ||
} | ||
} | ||
$.extend( $.easing, | ||
{ | ||
def: 'easeOutQuad', | ||
swing: function (x, t, b, c, d) { | ||
//alert($.easing.default); | ||
return $.easing[$.easing.def](x, t, b, c, d); | ||
swing: function (x) { | ||
return $.easing[$.easing.def](x); | ||
}, | ||
easeInQuad: function (x, t, b, c, d) { | ||
return c*(t/=d)*t + b; | ||
easeInQuad: function (x) { | ||
return x * x; | ||
}, | ||
easeOutQuad: function (x, t, b, c, d) { | ||
return -c *(t/=d)*(t-2) + b; | ||
easeOutQuad: function (x) { | ||
return 1 - ( 1 - x ) * ( 1 - x ); | ||
}, | ||
easeInOutQuad: function (x, t, b, c, d) { | ||
if ((t/=d/2) < 1) return c/2*t*t + b; | ||
return -c/2 * ((--t)*(t-2) - 1) + b; | ||
easeInOutQuad: function (x) { | ||
return x < 0.5 ? | ||
2 * x * x : | ||
1 - pow( -2 * x + 2, 2 ) / 2; | ||
}, | ||
easeInCubic: function (x, t, b, c, d) { | ||
return c*(t/=d)*t*t + b; | ||
easeInCubic: function (x) { | ||
return x * x * x; | ||
}, | ||
easeOutCubic: function (x, t, b, c, d) { | ||
return c*((t=t/d-1)*t*t + 1) + b; | ||
easeOutCubic: function (x) { | ||
return 1 - pow( 1 - x, 3 ); | ||
}, | ||
easeInOutCubic: function (x, t, b, c, d) { | ||
if ((t/=d/2) < 1) return c/2*t*t*t + b; | ||
return c/2*((t-=2)*t*t + 2) + b; | ||
easeInOutCubic: function (x) { | ||
return x < 0.5 ? | ||
4 * x * x * x : | ||
1 - pow( -2 * x + 2, 3 ) / 2; | ||
}, | ||
easeInQuart: function (x, t, b, c, d) { | ||
return c*(t/=d)*t*t*t + b; | ||
easeInQuart: function (x) { | ||
return x * x * x * x; | ||
}, | ||
easeOutQuart: function (x, t, b, c, d) { | ||
return -c * ((t=t/d-1)*t*t*t - 1) + b; | ||
easeOutQuart: function (x) { | ||
return 1 - pow( 1 - x, 4 ); | ||
}, | ||
easeInOutQuart: function (x, t, b, c, d) { | ||
if ((t/=d/2) < 1) return c/2*t*t*t*t + b; | ||
return -c/2 * ((t-=2)*t*t*t - 2) + b; | ||
easeInOutQuart: function (x) { | ||
return x < 0.5 ? | ||
8 * x * x * x * x : | ||
1 - pow( -2 * x + 2, 4 ) / 2; | ||
}, | ||
easeInQuint: function (x, t, b, c, d) { | ||
return c*(t/=d)*t*t*t*t + b; | ||
easeInQuint: function (x) { | ||
return x * x * x * x * x; | ||
}, | ||
easeOutQuint: function (x, t, b, c, d) { | ||
return c*((t=t/d-1)*t*t*t*t + 1) + b; | ||
easeOutQuint: function (x) { | ||
return 1 - pow( 1 - x, 5 ); | ||
}, | ||
easeInOutQuint: function (x, t, b, c, d) { | ||
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; | ||
return c/2*((t-=2)*t*t*t*t + 2) + b; | ||
easeInOutQuint: function (x) { | ||
return x < 0.5 ? | ||
16 * x * x * x * x * x : | ||
1 - pow( -2 * x + 2, 5 ) / 2; | ||
}, | ||
easeInSine: function (x, t, b, c, d) { | ||
return -c * Math.cos(t/d * (Math.PI/2)) + c + b; | ||
easeInSine: function (x) { | ||
return 1 - cos( x * PI/2 ); | ||
}, | ||
easeOutSine: function (x, t, b, c, d) { | ||
return c * Math.sin(t/d * (Math.PI/2)) + b; | ||
easeOutSine: function (x) { | ||
return sin( x * PI/2 ); | ||
}, | ||
easeInOutSine: function (x, t, b, c, d) { | ||
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; | ||
easeInOutSine: function (x) { | ||
return -( cos( PI * x ) - 1 ) / 2; | ||
}, | ||
easeInExpo: function (x, t, b, c, d) { | ||
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; | ||
easeInExpo: function (x) { | ||
return x === 0 ? 0 : pow( 2, 10 * x - 10 ); | ||
}, | ||
easeOutExpo: function (x, t, b, c, d) { | ||
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; | ||
easeOutExpo: function (x) { | ||
return x === 1 ? 1 : 1 - pow( 2, -10 * x ); | ||
}, | ||
easeInOutExpo: function (x, t, b, c, d) { | ||
if (t==0) return b; | ||
if (t==d) return b+c; | ||
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; | ||
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; | ||
easeInOutExpo: function (x) { | ||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? | ||
pow( 2, 20 * x - 10 ) / 2 : | ||
( 2 - pow( 2, -20 * x + 10 ) ) / 2; | ||
}, | ||
easeInCirc: function (x, t, b, c, d) { | ||
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; | ||
easeInCirc: function (x) { | ||
return 1 - sqrt( 1 - pow( x, 2 ) ); | ||
}, | ||
easeOutCirc: function (x, t, b, c, d) { | ||
return c * Math.sqrt(1 - (t=t/d-1)*t) + b; | ||
easeOutCirc: function (x) { | ||
return sqrt( 1 - pow( x - 1, 2 ) ); | ||
}, | ||
easeInOutCirc: function (x, t, b, c, d) { | ||
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; | ||
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; | ||
easeInOutCirc: function (x) { | ||
return x < 0.5 ? | ||
( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 : | ||
( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2; | ||
}, | ||
easeInElastic: function (x, t, b, c, d) { | ||
var s=1.70158;var p=0;var a=c; | ||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | ||
if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | ||
easeInElastic: function (x) { | ||
return x === 0 ? 0 : x === 1 ? 1 : | ||
-pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 ); | ||
}, | ||
easeOutElastic: function (x, t, b, c, d) { | ||
var s=1.70158;var p=0;var a=c; | ||
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | ||
if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; | ||
easeOutElastic: function (x) { | ||
return x === 0 ? 0 : x === 1 ? 1 : | ||
pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1; | ||
}, | ||
easeInOutElastic: function (x, t, b, c, d) { | ||
var s=1.70158;var p=0;var a=c; | ||
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); | ||
if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | ||
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; | ||
easeInOutElastic: function (x) { | ||
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? | ||
-( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 : | ||
pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1; | ||
}, | ||
easeInBack: function (x, t, b, c, d, s) { | ||
if (s == undefined) s = 1.70158; | ||
return c*(t/=d)*t*((s+1)*t - s) + b; | ||
easeInBack: function (x) { | ||
return c3 * x * x * x - c1 * x * x; | ||
}, | ||
easeOutBack: function (x, t, b, c, d, s) { | ||
if (s == undefined) s = 1.70158; | ||
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; | ||
easeOutBack: function (x) { | ||
return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 ); | ||
}, | ||
easeInOutBack: function (x, t, b, c, d, s) { | ||
if (s == undefined) s = 1.70158; | ||
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; | ||
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; | ||
easeInOutBack: function (x) { | ||
return x < 0.5 ? | ||
( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 : | ||
( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2; | ||
}, | ||
easeInBounce: function (x, t, b, c, d) { | ||
return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b; | ||
easeInBounce: function (x) { | ||
return 1 - bounceOut( 1 - x ); | ||
}, | ||
easeOutBounce: function (x, t, b, c, d) { | ||
if ((t/=d) < (1/2.75)) { | ||
return c*(7.5625*t*t) + b; | ||
} else if (t < (2/2.75)) { | ||
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; | ||
} else if (t < (2.5/2.75)) { | ||
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; | ||
} else { | ||
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; | ||
} | ||
}, | ||
easeInOutBounce: function (x, t, b, c, d) { | ||
if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; | ||
return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; | ||
easeOutBounce: bounceOut, | ||
easeInOutBounce: function (x) { | ||
return x < 0.5 ? | ||
( 1 - bounceOut( 1 - 2 * x ) ) / 2 : | ||
( 1 + bounceOut( 2 * x - 1 ) ) / 2; | ||
} | ||
});})(jQuery); | ||
}); | ||
}); |
@@ -1,14 +0,1 @@ | ||
/* | ||
* jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/ | ||
* Open source under the BSD License. | ||
* Copyright © 2008 George McGinley Smith | ||
* All rights reserved. | ||
* https://raw.github.com/gdsmith/jquery-easing/master/LICENSE | ||
*/ | ||
(function(h){h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return h.easing[h.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1> | ||
(a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a, | ||
c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b* | ||
(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0== | ||
a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0== | ||
f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-h.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625* | ||
(a-=2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*h.easing.easeInBounce(e,2*a,0,b,d)+c:.5*h.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}})})(jQuery); | ||
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing["jswing"]=$.easing["swing"];var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})}); |
{ | ||
"name": "jquery.easing", | ||
"version": "1.3.2", | ||
"homepage": "http://gsgd.co.uk/sandbox/jquery/easing/", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/gdsmith/jquery.easing", | ||
"description": "A jQuery plugin from GSGD to give advanced easing options", | ||
@@ -18,3 +18,2 @@ "author": { | ||
}, | ||
"homepage": "https://github.com/gdsmith/jquery.easing", | ||
"main": "jquery.easing.js", | ||
@@ -25,6 +24,8 @@ "directories": { | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Use tests in the examples directory\" && exit 1", | ||
"uglify": "uglifyjs jquery.easing.js -o jquery.easing.min.js" | ||
}, | ||
"dependencies": { | ||
"jquery": ">= 1.3.0" | ||
"devDependencies": { | ||
"jquery": ">=1.3.0", | ||
"uglify-js": "^2.6.2" | ||
}, | ||
@@ -35,8 +36,3 @@ "keywords": [ | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "BSD", | ||
"url": "https://raw.githubusercontent.com/gdsmith/jquery.easing/master/LICENSE" | ||
} | ||
] | ||
"license": "BSD-3-Clause" | ||
} |
@@ -5,2 +5,23 @@ # jQuery Easing Plugin | ||
For CDN please use CloudFlare [`http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js`](http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js) to help my host. Thank you. | ||
For CDN please use CloudFlare [`http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js`](http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js) to help my host. Thank you. | ||
# AMD or CommonJS usage | ||
```js | ||
// CommonJS | ||
var jQuery = require('jquery'); | ||
require('jquery.easing')(jQuery); | ||
// AMD | ||
define(['jquery', 'jquery.easing'], function (jQuery, easing) { | ||
easing(jQuery) | ||
}) | ||
``` | ||
# Building and testing | ||
* Clone the repo | ||
* `npm install` | ||
* Make changes | ||
* Test against files in `/examples` | ||
* Build minified version with `npm run uglify` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
806102
0
109
16933
27
1
2
1
- Removedjquery@>= 1.3.0
- Removedjquery@3.7.1(transitive)