vendor: 5,799 bytes, lines 1-151
1/* 2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 * 4 * Uses the built In easIng capabilities added In jQuery 1.1 5 * to offer multiple easIng options 6 * 7 * Copyright (c) 2007 George Smith 8 * Licensed under the MIT License: 9 * http://www.opensource.org/licenses/mit-license.php 10 */ 11 12// t: current time, b: begInnIng value, c: change In value, d: duration 13 14 15 16jQuery.easing['jswing'] = jQuery.easing['swing']; 17 18jQuery.extend( jQuery.easing, 19{ 20 //def: 'easeOutQuad', 21 def: 'swing', 22 swing: function (x, t, b, c, d) { 23 return this.easeOutQuad(x, t, b, c, d); // Mirco Slepko 19 Aprile 2016 24 //return jQuery.easing[this.def](x, t, b, c, d); // Mirco Slepko 19 Aprile 2016 25 //return jQuery.easing[jQuery.easing.def](x, t, b, c, d); // originale 26 }, 27 easeInQuad: function (x, t, b, c, d) { 28 return c*(t/=d)*t + b; 29 }, 30 easeOutQuad: function (x, t, b, c, d) { 31 return -c *(t/=d)*(t-2) + b; 32 }, 33 easeInOutQuad: function (x, t, b, c, d) { 34 if ((t/=d/2) < 1) return c/2*t*t + b; 35 return -c/2 * ((--t)*(t-2) - 1) + b; 36 }, 37 easeInCubic: function (x, t, b, c, d) { 38 return c*(t/=d)*t*t + b; 39 }, 40 easeOutCubic: function (x, t, b, c, d) { 41 return c*((t=t/d-1)*t*t + 1) + b; 42 }, 43 easeInOutCubic: function (x, t, b, c, d) { 44 if ((t/=d/2) < 1) return c/2*t*t*t + b; 45 return c/2*((t-=2)*t*t + 2) + b; 46 }, 47 easeInQuart: function (x, t, b, c, d) { 48 return c*(t/=d)*t*t*t + b; 49 }, 50 easeOutQuart: function (x, t, b, c, d) { 51 return -c * ((t=t/d-1)*t*t*t - 1) + b; 52 }, 53 easeInOutQuart: function (x, t, b, c, d) { 54 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 55 return -c/2 * ((t-=2)*t*t*t - 2) + b; 56 }, 57 easeInQuint: function (x, t, b, c, d) { 58 return c*(t/=d)*t*t*t*t + b; 59 }, 60 easeOutQuint: function (x, t, b, c, d) { 61 return c*((t=t/d-1)*t*t*t*t + 1) + b; 62 }, 63 easeInOutQuint: function (x, t, b, c, d) { 64 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 65 return c/2*((t-=2)*t*t*t*t + 2) + b; 66 }, 67 easeInSine: function (x, t, b, c, d) { 68 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 69 }, 70 easeOutSine: function (x, t, b, c, d) { 71 return c * Math.sin(t/d * (Math.PI/2)) + b; 72 }, 73 easeInOutSine: function (x, t, b, c, d) { 74 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 75 }, 76 easeInExpo: function (x, t, b, c, d) { 77 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 78 }, 79 easeOutExpo: function (x, t, b, c, d) { 80 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 81 }, 82 easeInOutExpo: function (x, t, b, c, d) { 83 if (t==0) return b; 84 if (t==d) return b+c; 85 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 86 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 87 }, 88 easeInCirc: function (x, t, b, c, d) { 89 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 90 }, 91 easeOutCirc: function (x, t, b, c, d) { 92 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 93 }, 94 easeInOutCirc: function (x, t, b, c, d) { 95 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 96 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 97 }, 98 easeInElastic: function (x, t, b, c, d) { 99 var s=1.70158;var p=0;var a=c; 100 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 101 if (a < Math.abs(c)) { a=c; var s=p/4; } 102 else var s = p/(2*Math.PI) * Math.asin (c/a); 103 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 104 }, 105 easeOutElastic: function (x, t, b, c, d) { 106 var s=1.70158;var p=0;var a=c; 107 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 108 if (a < Math.abs(c)) { a=c; var s=p/4; } 109 else var s = p/(2*Math.PI) * Math.asin (c/a); 110 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 111 }, 112 easeInOutElastic: function (x, t, b, c, d) { 113 var s=1.70158;var p=0;var a=c; 114 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 115 if (a < Math.abs(c)) { a=c; var s=p/4; } 116 else var s = p/(2*Math.PI) * Math.asin (c/a); 117 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 118 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 119 }, 120 easeInBack: function (x, t, b, c, d, s) { 121 if (s == undefined) s = 1.70158; 122 return c*(t/=d)*t*((s+1)*t - s) + b; 123 }, 124 easeOutBack: function (x, t, b, c, d, s) { 125 if (s == undefined) s = 1.70158; 126 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 127 }, 128 easeInOutBack: function (x, t, b, c, d, s) { 129 if (s == undefined) s = 1.70158; 130 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 131 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 132 }, 133 easeInBounce: function (x, t, b, c, d) { 134 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 135 }, 136 easeOutBounce: function (x, t, b, c, d) { 137 if ((t/=d) < (1/2.75)) { 138 return c*(7.5625*t*t) + b; 139 } else if (t < (2/2.75)) { 140 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 141 } else if (t < (2.5/2.75)) { 142 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 143 } else { 144 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 145 } 146 }, 147 easeInOutBounce: function (x, t, b, c, d) { 148 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 149 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 150 } 151});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.