vendor: 3,108 bytes, lines 1-114
1/* 2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 */ 4 5"use strict"; 6jQuery.easing['jswing'] = jQuery.easing['swing']; 7 8jQuery.extend( 9 jQuery.easing, 10 { 11 def: 'easeOutQuad', 12 swing: function (x, t, b, c, d) { 13 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 14 }, 15 easeInQuad: function (x, t, b, c, d) { 16 return c * (t /= d) * t + b; 17 }, 18 easeOutQuad: function (x, t, b, c, d) { 19 return -c * (t /= d) * (t - 2) + b; 20 }, 21 easeInOutQuad: function (x, t, b, c, d) { 22 if ((t /= d / 2) < 1) { 23 return c / 2 * t * t + b; 24 } 25 return -c / 2 * ((--t) * (t - 2) - 1) + b; 26 }, 27 easeInCubic: function (x, t, b, c, d) { 28 return c * (t /= d) * t * t + b; 29 }, 30 easeOutCubic: function (x, t, b, c, d) { 31 return c * ((t = t / d - 1) * t * t + 1) + b; 32 }, 33 easeInOutCubic: function (x, t, b, c, d) { 34 if ((t /= d / 2) < 1) { 35 return c / 2 * t * t * t + b; 36 } 37 return c / 2 * ((t -= 2) * t * t + 2) + b; 38 }, 39 easeInQuart: function (x, t, b, c, d) { 40 return c * (t /= d) * t * t * t + b; 41 }, 42 easeOutQuart: function (x, t, b, c, d) { 43 return -c * ((t = t / d - 1) * t * t * t - 1) + b; 44 }, 45 easeInOutQuart: function (x, t, b, c, d) { 46 if ((t /= d / 2) < 1) { 47 return c / 2 * t * t * t * t + b; 48 } 49 return -c / 2 * ((t -= 2) * t * t * t - 2) + b; 50 }, 51 easeInQuint: function (x, t, b, c, d) { 52 return c * (t /= d) * t * t * t * t + b; 53 }, 54 easeOutQuint: function (x, t, b, c, d) { 55 return c * ((t = t / d - 1) * t * t * t * t + 1) + b; 56 }, 57 easeInOutQuint: function (x, t, b, c, d) { 58 if ((t /= d / 2) < 1) { 59 return c / 2 * t * t * t * t * t + b; 60 } 61 return c / 2 * ((t -= 2) * t * t * t * t + 2) + b; 62 }, 63 easeInSine: function (x, t, b, c, d) { 64 return -c * Math.cos( t / d * (Math.PI / 2) ) + c + b; 65 }, 66 easeOutSine: function (x, t, b, c, d) { 67 return c * Math.sin( t / d * (Math.PI / 2) ) + b; 68 }, 69 easeInOutSine: function (x, t, b, c, d) { 70 return -c / 2 * (Math.cos( Math.PI * t / d ) - 1) + b; 71 }, 72 easeInExpo: function (x, t, b, c, d) { 73 return (t == 0) ? b : c * Math.pow( 2, 10 * (t / d - 1) ) + b; 74 }, 75 easeOutExpo: function (x, t, b, c, d) { 76 return (t == d) ? b + c : c * (-Math.pow( 2, -10 * t / d ) + 1) + b; 77 }, 78 easeInOutExpo: function (x, t, b, c, d) { 79 if (t == 0) { 80 return b; 81 } 82 if (t == d) { 83 return b + c; 84 } 85 if ((t /= d / 2) < 1) { 86 return c / 2 * Math.pow( 2, 10 * (t - 1) ) + b; 87 } 88 return c / 2 * (-Math.pow( 2, -10 * --t ) + 2) + b; 89 }, 90 easeInCirc: function (x, t, b, c, d) { 91 return -c * (Math.sqrt( 1 - (t /= d) * t ) - 1) + b; 92 }, 93 easeOutCirc: function (x, t, b, c, d) { 94 return c * Math.sqrt( 1 - (t = t / d - 1) * t ) + b; 95 }, 96 easeInOutCirc: function (x, t, b, c, d) { 97 if ((t /= d / 2) < 1) { 98 return -c / 2 * (Math.sqrt( 1 - t * t ) - 1) + b; 99 } 100 return c / 2 * (Math.sqrt( 1 - (t -= 2) * t ) + 1) + b; 101 }, 102 easeInElastic: function (x, t, b, c, d) { 103 var s = 1.70158; 104 var p = 0; 105 var a = c; 106 if (t == 0) { 107 return b; 108 } 109 if ((t /= d) == 1) { 110 return b + c; 111 } 112 if ( ! p) { 113 p = d * .3; 114 }
115 if (a < Math.abs( c )) { 116 a = c; 117 var s = p / 4; 118 } else { 119 var s = p / (2 * Math.PI) * Math.asin( c / a ); 120 } 121 return -(a * Math.pow( 2, 10 * (t -= 1) ) * Math.sin( (t * d - s) * (2 * Math.PI) / p )) + b; 122 }, 123 easeOutElastic: function (x, t, b, c, d) { 124 var s = 1.70158; 125 var p = 0; 126 var a = c; 127 if (t == 0) { 128 return b; 129 } 130 if ((t /= d) == 1) { 131 return b + c; 132 } 133 if ( ! p) { 134 p = d * .3; 135 } 136 if (a < Math.abs( c )) { 137 a = c; 138 var s = p / 4; 139 } else { 140 var s = p / (2 * Math.PI) * Math.asin( c / a ); 141 } 142 return a * Math.pow( 2, -10 * t ) * Math.sin( (t * d - s) * (2 * Math.PI) / p ) + c + b; 143 }, 144 easeInOutElastic: function (x, t, b, c, d) { 145 var s = 1.70158; 146 var p = 0; 147 var a = c; 148 if (t == 0) { 149 return b; 150 } 151 if ((t /= d / 2) == 2) { 152 return b + c; 153 } 154 if ( ! p) { 155 p = d * (.3 * 1.5); 156 } 157 if (a < Math.abs( c )) { 158 a = c; 159 var s = p / 4; 160 } else { 161 var s = p / (2 * Math.PI) * Math.asin( c / a ); 162 } 163 if (t < 1) { 164 return -.5 * (a * Math.pow( 2, 10 * (t -= 1) ) * Math.sin( (t * d - s) * (2 * Math.PI) / p )) + b; 165 } 166 return a * Math.pow( 2, -10 * (t -= 1) ) * Math.sin( (t * d - s) * (2 * Math.PI) / p ) * .5 + c + b; 167 }, 168 easeInBack: function (x, t, b, c, d, s) { 169 if (s == undefined) { 170 s = 1.70158; 171 } 172 return c * (t /= d) * t * ((s + 1) * t - s) + b; 173 }, 174 easeOutBack: function (x, t, b, c, d, s) { 175 if (s == undefined) { 176 s = 1.70158; 177 } 178 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; 179 }, 180 easeInOutBack: function (x, t, b, c, d, s) { 181 if (s == undefined) { 182 s = 1.70158; 183 } 184 if ((t /= d / 2) < 1) { 185 return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; 186 } 187 return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b; 188 }, 189 easeInBounce: function (x, t, b, c, d) { 190 return c - jQuery.easing.easeOutBounce( x, d - t, 0, c, d ) + b; 191 }, 192 easeOutBounce: function (x, t, b, c, d) { 193 if ((t /= d) < (1 / 2.75)) { 194 return c * (7.5625 * t * t) + b; 195 } else if (t < (2 / 2.75)) { 196 return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b; 197 } else if (t < (2.5 / 2.75)) { 198 return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b; 199 } else { 200 return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b; 201 } 202 }, 203 easeInOutBounce: function (x, t, b, c, d) { 204 if (t < d / 2) { 205 return jQuery.easing.easeInBounce( x, t * 2, 0, c, d ) * .5 + b; 206 } 207 return jQuery.easing.easeOutBounce( x, t * 2 - d, 0, c, d ) * .5 + c * .5 + b; 208 } 209 } 210);
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.