/* * jquery easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * uses the built in easing capabilities added in jquery 1.1 * to offer multiple easing options * * terms of use - jquery easing * * open source under the bsd license. * * copyright â© 2008 george mcginley smith * all rights reserved. * * redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * this software is provided by the copyright holders and contributors "as is" and any * express or implied warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose are disclaimed. in no event shall the * copyright owner or contributors be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, procurement of substitute * goods or services; loss of use, data, or profits; or business interruption) however caused * and on any theory of liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this software, even if advised * of the possibility of such damage. */ jquery.easing.jswing=jquery.easing.swing,jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(n,e,t,u,a){return jquery.easing[jquery.easing.def](n,e,t,u,a)},easeinquad:function(n,e,t,u,a){return u*(e/=a)*e+t},easeoutquad:function(n,e,t,u,a){return-u*(e/=a)*(e-2)+t},easeinoutquad:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e+t:-u/2*(--e*(e-2)-1)+t},easeincubic:function(n,e,t,u,a){return u*(e/=a)*e*e+t},easeoutcubic:function(n,e,t,u,a){return u*((e=e/a-1)*e*e+1)+t},easeinoutcubic:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e+t:u/2*((e-=2)*e*e+2)+t},easeinquart:function(n,e,t,u,a){return u*(e/=a)*e*e*e+t},easeoutquart:function(n,e,t,u,a){return-u*((e=e/a-1)*e*e*e-1)+t},easeinoutquart:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e+t:-u/2*((e-=2)*e*e*e-2)+t},easeinquint:function(n,e,t,u,a){return u*(e/=a)*e*e*e*e+t},easeoutquint:function(n,e,t,u,a){return u*((e=e/a-1)*e*e*e*e+1)+t},easeinoutquint:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e*e+t:u/2*((e-=2)*e*e*e*e+2)+t},easeinsine:function(n,e,t,u,a){return-u*math.cos(e/a*(math.pi/2))+u+t},easeoutsine:function(n,e,t,u,a){return u*math.sin(e/a*(math.pi/2))+t},easeinoutsine:function(n,e,t,u,a){return-u/2*(math.cos(math.pi*e/a)-1)+t},easeinexpo:function(n,e,t,u,a){return 0==e?t:u*math.pow(2,10*(e/a-1))+t},easeoutexpo:function(n,e,t,u,a){return e==a?t+u:u*(-math.pow(2,-10*e/a)+1)+t},easeinoutexpo:function(n,e,t,u,a){return 0==e?t:e==a?t+u:(e/=a/2)<1?u/2*math.pow(2,10*(e-1))+t:u/2*(-math.pow(2,-10*--e)+2)+t},easeincirc:function(n,e,t,u,a){return-u*(math.sqrt(1-(e/=a)*e)-1)+t},easeoutcirc:function(n,e,t,u,a){return u*math.sqrt(1-(e=e/a-1)*e)+t},easeinoutcirc:function(n,e,t,u,a){return(e/=a/2)<1?-u/2*(math.sqrt(1-e*e)-1)+t:u/2*(math.sqrt(1-(e-=2)*e)+1)+t},easeinelastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),se?-.5*s*math.pow(2,10*(e-=1))*math.sin(2*(e*a-r)*math.pi/i)+t:s*math.pow(2,-10*(e-=1))*math.sin(2*(e*a-r)*math.pi/i)*.5+u+t},easeinback:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*(e/=a)*e*((r+1)*e-r)+t},easeoutback:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*((e=e/a-1)*e*((r+1)*e+r)+1)+t},easeinoutback:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?u/2*e*e*(((r*=1.525)+1)*e-r)+t:u/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},easeinbounce:function(n,e,t,u,a){return u-jquery.easing.easeoutbounce(n,a-e,0,u,a)+t},easeoutbounce:function(n,e,t,u,a){return(e/=a)<1/2.75?7.5625*u*e*e+t:2/2.75>e?u*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?u*(7.5625*(e-=2.25/2.75)*e+.9375)+t:u*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeinoutbounce:function(n,e,t,u,a){return a/2>e?.5*jquery.easing.easeinbounce(n,2*e,0,u,a)+t:.5*jquery.easing.easeoutbounce(n,2*e-a,0,u,a)+.5*u+t}});