vendor: 6,785 bytes, lines 1-175
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 * TERMS OF USE - jQuery Easing 8 * 9 * Open source under the BSD License. 10 * 11 * Copyright © 2008 George McGinley Smith 12 * All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without modification, 15 * are permitted provided that the following conditions are met: 16 * 17 * Redistributions of source code must retain the above copyright notice, this list of 18 * conditions and the following disclaimer. 19 * Redistributions in binary form must reproduce the above copyright notice, this list 20 * of conditions and the following disclaimer in the documentation and/or other materials 21 * provided with the distribution. 22 * 23 * Neither the name of the author nor the names of contributors may be used to endorse 24 * or promote products derived from this software without specific prior written permission. 25 * 26 */ 27jQuery.easing['jswing'] = jQuery.easing['swing']; 28jQuery.extend(jQuery.easing, { 29 def: 'easeOutQuad', 30 swing: function (x, t, b, c, d) { 31 return jQuery.easing[jQuery.easing.def](x, t, b, c, d) 32 }, 33 easeInQuad: function (x, t, b, c, d) { 34 return c * (t /= d) * t + b 35 }, 36 easeOutQuad: function (x, t, b, c, d) { 37 return -c * (t /= d) * (t - 2) + b 38 }, 39 easeInOutQuad: function (x, t, b, c, d) { 40 if ((t /= d / 2) < 1) return c / 2 * t * t + b; 41 return -c / 2 * ((--t) * (t - 2) - 1) + b 42 }, 43 easeInCubic: function (x, t, b, c, d) { 44 return c * (t /= d) * t * t + b 45 }, 46 easeOutCubic: function (x, t, b, c, d) { 47 return c * ((t = t / d - 1) * t * t + 1) + b 48 }, 49 easeInOutCubic: function (x, t, b, c, d) { 50 if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; 51 return c / 2 * ((t -= 2) * t * t + 2) + b 52 }, 53 easeInQuart: function (x, t, b, c, d) { 54 return c * (t /= d) * t * t * t + b 55 }, 56 easeOutQuart: function (x, t, b, c, d) { 57 return -c * ((t = t / d - 1) * t * t * t - 1) + b 58 }, 59 easeInOutQuart: function (x, t, b, c, d) { 60 if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; 61 return -c / 2 * ((t -= 2) * t * t * t - 2) + b 62 }, 63 easeInQuint: function (x, t, b, c, d) { 64 return c * (t /= d) * t * t * t * t + b 65 }, 66 easeOutQuint: function (x, t, b, c, d) { 67 return c * ((t = t / d - 1) * t * t * t * t + 1) + b 68 }, 69 easeInOutQuint: function (x, t, b, c, d) { 70 if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; 71 return c / 2 * ((t -= 2) * t * t * t * t + 2) + b 72 }, 73 easeInSine: function (x, t, b, c, d) { 74 return -c * Math.cos(t / d * (Math.PI / 2)) + c + b 75 }, 76 easeOutSine: function (x, t, b, c, d) { 77 return c * Math.sin(t / d * (Math.PI / 2)) + b 78 }, 79 easeInOutSine: function (x, t, b, c, d) { 80 return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b 81 }, 82 easeInExpo: function (x, t, b, c, d) { 83 return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b 84 }, 85 easeOutExpo: function (x, t, b, c, d) { 86 return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b 87 }, 88 easeInOutExpo: function (x, t, b, c, d) { 89 if (t == 0) return b; 90 if (t == d) return b + c; 91 if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; 92 return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b 93 }, 94 easeInCirc: function (x, t, b, c, d) { 95 return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b 96 }, 97 easeOutCirc: function (x, t, b, c, d) { 98 return c * Math.sqrt(1 - (t = t / d - 1) * t) + b 99 }, 100 easeInOutCirc: function (x, t, b, c, d) { 101 if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; 102 return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b 103 }, 104 easeInElastic: function (x, t, b, c, d) { 105 var s = 1.70158; 106 var p = 0; 107 var a = c; 108 if (t == 0) return b; 109 if ((t /= d) == 1) return b + c; 110 if (!p) p = d * .3; 111 if (a < Math.abs(c)) { 112 a = c; 113 var s = p / 4 114 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 115 return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b 116 }, 117 easeOutElastic: function (x, t, b, c, d) { 118 var s = 1.70158; 119 var p = 0; 120 var a = c; 121 if (t == 0) return b; 122 if ((t /= d) == 1) return b + c; 123 if (!p) p = d * .3; 124 if (a < Math.abs(c)) { 125 a = c; 126 var s = p / 4 127 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 128 return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b 129 }, 130 easeInOutElastic: function (x, t, b, c, d) { 131 var s = 1.70158; 132 var p = 0; 133 var a = c; 134 if (t == 0) return b; 135 if ((t /= d / 2) == 2) return b + c; 136 if (!p) p = d * (.3 * 1.5); 137 if (a < Math.abs(c)) { 138 a = c; 139 var s = p / 4 140 } else var s = p / (2 * Math.PI) * Math.asin(c / a); 141 if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; 142 return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b 143 }, 144 easeInBack: function (x, t, b, c, d, s) { 145 if (s == undefined) s = 1.70158; 146 return c * (t /= d) * t * ((s + 1) * t - s) + b 147 }, 148 easeOutBack: function (x, t, b, c, d, s) { 149 if (s == undefined) s = 1.70158; 150 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b 151 }, 152 easeInOutBack: function (x, t, b, c, d, s) { 153 if (s == undefined) s = 1.70158; 154 if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; 155 return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b 156 }, 157 easeInBounce: function (x, t, b, c, d) { 158 return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b 159 }, 160 easeOutBounce: function (x, t, b, c, d) { 161 if ((t /= d) < (1 / 2.75)) { 162 return c * (7.5625 * t * t) + b 163 } else if (t < (2 / 2.75)) { 164 return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b 165 } else if (t < (2.5 / 2.75)) { 166 return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b 167 } else { 168 return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b 169 } 170 }, 171 easeInOutBounce: function (x, t, b, c, d) { 172 if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b; 173 return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b 174 } 175});
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.