vendor: 6,219 bytes, lines 1-163
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 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 27 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 28 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 29 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 31 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 32 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 33 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 34 * OF THE POSSIBILITY OF SUCH DAMAGE. 35 * 36 */ 37 38// t: current time, b: begInnIng value, c: change In value, d: duration 39jQuery.easing["jswing"] = jQuery.easing["swing"]; 40 41jQuery.extend(jQuery.easing, { 42 def: "easeOutQuad", 43 swing: function (x, t, b, c, d) { 44 //alert(jQuery.easing.default); 45 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 46 }, 47 easeInQuad: function (x, t, b, c, d) { 48 return c * (t /= d) * t + b; 49 }, 50 easeOutQuad: function (x, t, b, c, d) { 51 return -c * (t /= d) * (t - 2) + b; 52 }, 53 easeInOutQuad: function (x, t, b, c, d) { 54 if ((t /= d / 2) < 1) return (c / 2) * t * t + b; 55 return (-c / 2) * (--t * (t - 2) - 1) + b; 56 }, 57 easeInCubic: function (x, t, b, c, d) { 58 return c * (t /= d) * t * t + b; 59 }, 60 easeOutCubic: function (x, t, b, c, d) { 61 return c * ((t = t / d - 1) * t * t + 1) + b; 62 }, 63 easeInOutCubic: function (x, t, b, c, d) { 64 if ((t /= d / 2) < 1) return (c / 2) * t * t * t + b; 65 return (c / 2) * ((t -= 2) * t * t + 2) + b; 66 }, 67 easeInQuart: function (x, t, b, c, d) { 68 return c * (t /= d) * t * t * t + b; 69 }, 70 easeOutQuart: function (x, t, b, c, d) { 71 return -c * ((t = t / d - 1) * t * t * t - 1) + b; 72 }, 73 easeInOutQuart: function (x, t, b, c, d) { 74 if ((t /= d / 2) < 1) return (c / 2) * t * t * t * t + b; 75 return (-c / 2) * ((t -= 2) * t * t * t - 2) + b; 76 }, 77 easeInQuint: function (x, t, b, c, d) { 78 return c * (t /= d) * t * t * t * t + b; 79 }, 80 easeOutQuint: function (x, t, b, c, d) { 81 return c * ((t = t / d - 1) * t * t * t * t + 1) + b; 82 }, 83 easeInOutQuint: function (x, t, b, c, d) { 84 if ((t /= d / 2) < 1) return (c / 2) * t * t * t * t * t + b; 85 return (c / 2) * ((t -= 2) * t * t * t * t + 2) + b; 86 }, 87 easeInSine: function (x, t, b, c, d) { 88 return -c * Math.cos((t / d) * (Math.PI / 2)) + c + b; 89 }, 90 easeOutSine: function (x, t, b, c, d) { 91 return c * Math.sin((t / d) * (Math.PI / 2)) + b; 92 }, 93 easeInOutSine: function (x, t, b, c, d) { 94 return (-c / 2) * (Math.cos((Math.PI * t) / d) - 1) + b; 95 }, 96 easeInExpo: function (x, t, b, c, d) { 97 return t == 0 ? b : c * Math.pow(2, 10 * (t / d - 1)) + b; 98 }, 99 easeOutExpo: function (x, t, b, c, d) { 100 return t == d ? b + c : c * (-Math.pow(2, (-10 * t) / d) + 1) + b; 101 }, 102 easeInOutExpo: function (x, t, b, c, d) { 103 if (t == 0) return b; 104 if (t == d) return b + c; 105 if ((t /= d / 2) < 1) return (c / 2) * Math.pow(2, 10 * (t - 1)) + b; 106 return (c / 2) * (-Math.pow(2, -10 * --t) + 2) + b; 107 }, 108 easeInCirc: function (x, t, b, c, d) { 109 return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b; 110 }, 111 easeOutCirc: function (x, t, b, c, d) { 112 return c * Math.sqrt(1 - (t = t / d - 1) * t) + b; 113 }, 114 easeInOutCirc: function (x, t, b, c, d) { 115 if ((t /= d / 2) < 1) return (-c / 2) * (Math.sqrt(1 - t * t) - 1) + b; 116 return (c / 2) * (Math.sqrt(1 - (t -= 2) * t) + 1) + b; 117 }, 118 easeInElastic: function (x, t, b, c, d) { 119 var s = 1.70158; 120 var p = 0; 121 var a = c; 122 if (t == 0) return b; 123 if ((t /= d) == 1) return b + c; 124 if (!p) p = d * 0.3; 125 if (a < Math.abs(c)) { 126 a = c; 127 var s = p / 4; 128 } else var s = (p / (2 * Math.PI)) * Math.asin(c / a); 129 return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p)) + b; 130 }, 131 easeOutElastic: function (x, t, b, c, d) { 132 var s = 1.70158; 133 var p = 0; 134 var a = c; 135 if (t == 0) return b; 136 if ((t /= d) == 1) return b + c; 137 if (!p) p = d * 0.3; 138 if (a < Math.abs(c)) { 139 a = c; 140 var s = p / 4; 141 } else var s = (p / (2 * Math.PI)) * Math.asin(c / a); 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) return b; 149 if ((t /= d / 2) == 2) return b + c; 150 if (!p) p = d * (0.3 * 1.5); 151 if (a < Math.abs(c)) { 152 a = c; 153 var s = p / 4; 154 } else var s = (p / (2 * Math.PI)) * Math.asin(c / a); 155 if (t < 1) return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p)) + b; 156 return a * Math.pow(2, -10 * (t -= 1)) * Math.sin(((t * d - s) * (2 * Math.PI)) / p) * 0.5 + c + b; 157 }, 158 easeInBack: function (x, t, b, c, d, s) { 159 if (s == undefined) s = 1.70158; 160 return c * (t /= d) * t * ((s + 1) * t - s) + b; 161 }, 162 easeOutBack: function (x, t, b, c, d, s) { 163 if (s == undefined) s = 1.70158;
vendor: 2,678 bytes, lines 164-222
164 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; 165 }, 166 easeInOutBack: function (x, t, b, c, d, s) { 167 if (s == undefined) s = 1.70158; 168 if ((t /= d / 2) < 1) return (c / 2) * (t * t * (((s *= 1.525) + 1) * t - s)) + b; 169 return (c / 2) * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b; 170 }, 171 easeInBounce: function (x, t, b, c, d) { 172 return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b; 173 }, 174 easeOutBounce: function (x, t, b, c, d) { 175 if ((t /= d) < 1 / 2.75) { 176 return c * (7.5625 * t * t) + b; 177 } else if (t < 2 / 2.75) { 178 return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b; 179 } else if (t < 2.5 / 2.75) { 180 return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b; 181 } else { 182 return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b; 183 } 184 }, 185 easeInOutBounce: function (x, t, b, c, d) { 186 if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b; 187 return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b; 188 }, 189}); 190 191/* 192 * 193 * TERMS OF USE - EASING EQUATIONS 194 * 195 * Open source under the BSD License. 196 * 197 * Copyright © 2001 Robert Penner 198 * All rights reserved. 199 * 200 * Redistribution and use in source and binary forms, with or without modification, 201 * are permitted provided that the following conditions are met: 202 * 203 * Redistributions of source code must retain the above copyright notice, this list of 204 * conditions and the following disclaimer. 205 * Redistributions in binary form must reproduce the above copyright notice, this list 206 * of conditions and the following disclaimer in the documentation and/or other materials 207 * provided with the distribution. 208 * 209 * Neither the name of the author nor the names of contributors may be used to endorse 210 * or promote products derived from this software without specific prior written permission. 211 * 212 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 213 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 214 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 215 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 216 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 217 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 218 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 219 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 220 * OF THE POSSIBILITY OF SUCH DAMAGE. 221 * 222 */
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.