vendor: 3,921 bytes, lines 1-155
1/* 2 * jQuery Easing v1.4.1 - http://gsgd.co.uk/sandbox/jquery/easing/ 3 * Open source under the BSD License. 4 * Copyright © 2008 George McGinley Smith 5 * All rights reserved. 6 * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE 7*/ 8 9;(function($) { 10 11// Preserve the original jQuery "swing" easing as "jswing" 12$.easing.jswing = $.easing.swing; 13 14var pow = Math.pow, 15 sqrt = Math.sqrt, 16 sin = Math.sin, 17 cos = Math.cos, 18 PI = Math.PI, 19 c1 = 1.70158, 20 c2 = c1 * 1.525, 21 c3 = c1 + 1, 22 c4 = ( 2 * PI ) / 3, 23 c5 = ( 2 * PI ) / 4.5; 24 25// x is the fraction of animation progress, in the range 0..1 26function bounceOut(x) { 27 var n1 = 7.5625, 28 d1 = 2.75; 29 if ( x < 1/d1 ) { 30 return n1*x*x; 31 } else if ( x < 2/d1 ) { 32 return n1*(x-=(1.5/d1))*x + 0.75; 33 } else if ( x < 2.5/d1 ) { 34 return n1*(x-=(2.25/d1))*x + 0.9375; 35 } else { 36 return n1*(x-=(2.625/d1))*x + 0.984375; 37 } 38} 39 40$.extend( $.easing, 41{ 42 def: 'easeOutQuad', 43 swing: function (x) { 44 return $.easing[$.easing.def](x); 45 }, 46 easeInQuad: function (x) { 47 return x * x; 48 }, 49 easeOutQuad: function (x) { 50 return 1 - ( 1 - x ) * ( 1 - x ); 51 }, 52 easeInOutQuad: function (x) { 53 return x < 0.5 ? 54 2 * x * x : 55 1 - pow( -2 * x + 2, 2 ) / 2; 56 }, 57 easeInCubic: function (x) { 58 return x * x * x; 59 }, 60 easeOutCubic: function (x) { 61 return 1 - pow( 1 - x, 3 ); 62 }, 63 easeInOutCubic: function (x) { 64 return x < 0.5 ? 65 4 * x * x * x : 66 1 - pow( -2 * x + 2, 3 ) / 2; 67 }, 68 easeInQuart: function (x) { 69 return x * x * x * x; 70 }, 71 easeOutQuart: function (x) { 72 return 1 - pow( 1 - x, 4 ); 73 }, 74 easeInOutQuart: function (x) { 75 return x < 0.5 ? 76 8 * x * x * x * x : 77 1 - pow( -2 * x + 2, 4 ) / 2; 78 }, 79 easeInQuint: function (x) { 80 return x * x * x * x * x; 81 }, 82 easeOutQuint: function (x) { 83 return 1 - pow( 1 - x, 5 ); 84 }, 85 easeInOutQuint: function (x) { 86 return x < 0.5 ? 87 16 * x * x * x * x * x : 88 1 - pow( -2 * x + 2, 5 ) / 2; 89 }, 90 easeInSine: function (x) { 91 return 1 - cos( x * PI/2 ); 92 }, 93 easeOutSine: function (x) { 94 return sin( x * PI/2 ); 95 }, 96 easeInOutSine: function (x) { 97 return -( cos( PI * x ) - 1 ) / 2; 98 }, 99 easeInExpo: function (x) { 100 return x === 0 ? 0 : pow( 2, 10 * x - 10 ); 101 }, 102 easeOutExpo: function (x) { 103 return x === 1 ? 1 : 1 - pow( 2, -10 * x ); 104 }, 105 easeInOutExpo: function (x) { 106 return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? 107 pow( 2, 20 * x - 10 ) / 2 : 108 ( 2 - pow( 2, -20 * x + 10 ) ) / 2; 109 }, 110 easeInCirc: function (x) { 111 return 1 - sqrt( 1 - pow( x, 2 ) ); 112 }, 113 easeOutCirc: function (x) { 114 return sqrt( 1 - pow( x - 1, 2 ) ); 115 }, 116 easeInOutCirc: function (x) { 117 return x < 0.5 ? 118 ( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 : 119 ( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2; 120 }, 121 easeInElastic: function (x) { 122 return x === 0 ? 0 : x === 1 ? 1 : 123 -pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 ); 124 }, 125 easeOutElastic: function (x) { 126 return x === 0 ? 0 : x === 1 ? 1 : 127 pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1; 128 }, 129 easeInOutElastic: function (x) { 130 return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? 131 -( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 : 132 pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1; 133 }, 134 easeInBack: function (x) { 135 return c3 * x * x * x - c1 * x * x; 136 }, 137 easeOutBack: function (x) { 138 return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 ); 139 }, 140 easeInOutBack: function (x) { 141 return x < 0.5 ? 142 ( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 : 143 ( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2; 144 }, 145 easeInBounce: function (x) { 146 return 1 - bounceOut( 1 - x ); 147 }, 148 easeOutBounce: bounceOut, 149 easeInOutBounce: function (x) { 150 return x < 0.5 ? 151 ( 1 - bounceOut( 1 - 2 * x ) ) / 2 : 152 ( 1 + bounceOut( 2 * x - 1 ) ) / 2; 153 } 154 }); 155})(jQuery);
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.