vendor: 5,288 bytes, lines 1-173
1/* 2 * FOLLOWING part are jQuery easing functions authored by George McGinley Smith 3 * 4 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 5 * 6 * Uses the built in easing capabilities added In jQuery 1.1 to offer multiple easing options 7 * 8 * TERMS OF USE - jQuery Easing 9 * 10 * Open source under the BSD License. 11 * 12 * Copyright © 2008 George McGinley Smith 13 * All rights reserved. 14 */ 15 16// t: current time, b: begInnIng value, c: change In value, d: duration 17if (typeof jQuery != 'undefined') { 18 19 jQuery.easing['jswing'] = jQuery.easing['swing']; 20 21 jQuery.extend( jQuery.easing, 22 { 23 def: 'easeOutQuad', 24 swing: function (x, t, b, c, d) { 25 //alert(jQuery.easing.default); 26 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 27 }, 28 29 30 easeInQuad: function (x, t, b, c, d) { 31 return c*(t/=d)*t + b; 32 }, 33 easeOutQuad: function (x, t, b, c, d) { 34 return -c *(t/=d)*(t-2) + b; 35 }, 36 easeInOutQuad: function (x, t, b, c, d) { 37 if ((t/=d/2) < 1) return c/2*t*t + b; 38 return -c/2 * ((--t)*(t-2) - 1) + b; 39 }, 40 41 42 easeInCubic: function (x, t, b, c, d) { 43 return c*(t/=d)*t*t + b; 44 }, 45 easeOutCubic: function (x, t, b, c, d) { 46 return c*((t=t/d-1)*t*t + 1) + b; 47 }, 48 easeInOutCubic: function (x, t, b, c, d) { 49 if ((t/=d/2) < 1) return c/2*t*t*t + b; 50 return c/2*((t-=2)*t*t + 2) + b; 51 }, 52 53 54 easeInQuart: function (x, t, b, c, d) { 55 return c*(t/=d)*t*t*t + b; 56 }, 57 easeOutQuart: function (x, t, b, c, d) { 58 return -c * ((t=t/d-1)*t*t*t - 1) + b; 59 }, 60 easeInOutQuart: function (x, t, b, c, d) { 61 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 62 return -c/2 * ((t-=2)*t*t*t - 2) + b; 63 }, 64 65 66 easeInQuint: function (x, t, b, c, d) { 67 return c*(t/=d)*t*t*t*t + b; 68 }, 69 easeOutQuint: function (x, t, b, c, d) { 70 return c*((t=t/d-1)*t*t*t*t + 1) + b; 71 }, 72 easeInOutQuint: function (x, t, b, c, d) { 73 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 74 return c/2*((t-=2)*t*t*t*t + 2) + b; 75 }, 76 77 78 easeInSine: function (x, t, b, c, d) { 79 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 80 }, 81 easeOutSine: function (x, t, b, c, d) { 82 return c * Math.sin(t/d * (Math.PI/2)) + b; 83 }, 84 easeInOutSine: function (x, t, b, c, d) { 85 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 86 }, 87 88 89 easeInExpo: function (x, t, b, c, d) { 90 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 91 }, 92 easeOutExpo: function (x, t, b, c, d) { 93 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 94 }, 95 easeInOutExpo: function (x, t, b, c, d) { 96 if (t==0) return b; 97 if (t==d) return b+c; 98 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 99 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 100 }, 101 102 103 easeInCirc: function (x, t, b, c, d) { 104 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 105 }, 106 easeOutCirc: function (x, t, b, c, d) { 107 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 108 }, 109 easeInOutCirc: function (x, t, b, c, d) { 110 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 111 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 112 }, 113 114 115 easeInElastic: function (x, t, b, c, d) { 116 var s=1.70158;var p=0;var a=c; 117 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 118 if (a < Math.abs(c)) { a=c; var s=p/4; } 119 else var s = p/(2*Math.PI) * Math.asin (c/a); 120 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 121 }, 122 easeOutElastic: function (x, t, b, c, d) { 123 var s=1.70158;var p=0;var a=c; 124 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 125 if (a < Math.abs(c)) { a=c; var s=p/4; } 126 else var s = p/(2*Math.PI) * Math.asin (c/a); 127 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 128 }, 129 easeInOutElastic: function (x, t, b, c, d) { 130 var s=1.70158;var p=0;var a=c; 131 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 132 if (a < Math.abs(c)) { a=c; var s=p/4; } 133 else var s = p/(2*Math.PI) * Math.asin (c/a); 134 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 135 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 136 }, 137 138 139 easeInBack: function (x, t, b, c, d, s) { 140 if (s == undefined) s = 1.70158; 141 return c*(t/=d)*t*((s+1)*t - s) + b; 142 }, 143 easeOutBack: function (x, t, b, c, d, s) { 144 if (s == undefined) s = 1.70158; 145 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 146 }, 147 easeInOutBack: function (x, t, b, c, d, s) { 148 if (s == undefined) s = 1.70158; 149 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 150 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 151 }, 152 153 154 easeInBounce: function (x, t, b, c, d) { 155 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 156 }, 157 easeOutBounce: function (x, t, b, c, d) { 158 if ((t/=d) < (1/2.75)) { 159 return c*(7.5625*t*t) + b; 160 } else if (t < (2/2.75)) { 161 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 162 } else if (t < (2.5/2.75)) { 163 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 164 } else { 165 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 166 } 167 }, 168 easeInOutBounce: function (x, t, b, c, d) { 169 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 170 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 171 } 172 }); 173}
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.