The display and hidden-fadeout-fadein-fadetoggle-fadeto code for jquery animations:
<!doctype html>
jquery.easing.1.3 Slow Plug-in code:
/* * JQuery easing v1.3-http://gsgd.co.uk/sandbox/jquery/easing/* * Uses the built in easing capabilities added in Jque RY 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, * is permitted provided that the F Ollowing conditions is met: * * redistributions of source code must retain the above copyright notice, this list of * C Onditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following D Isclaimer in the documentation and/or and materials * provided with the distribution. * * Neither the name of the author nor the names of contributors May is used to endorse * or promote products derived fr Om this software without specific prior written permission. * * This Software is provided by the COPYRIGHT holders and CONTRIBUTORS "as are" and any * EXPRESS OR implied warranties, including, but NO T LIMITED to, the implied warranties of * merchantability and FITNESS for A particular PURPOSE is disclaimed. In NO EVENT shall the * COPYRIGHT OWNER OR CONTRIBUTORS is liable for any DIRECT, INDIRECT, incidental, special, * exemp Lary, 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-on-the-software, even IF advised * of the possibility of SUCH DAMAGE. **///t:current time, b:beginning value, C:change in value, d:durationjquery.easing[' jswing '] = jquery.easing[' Swing '] ; Jquery.extend (jquery.easing,{def: ' Easeoutquad ', swing:function (x, T, B, C, D) {//alert (JQuery.easing.defaultreturn Jquery.easing[jquery.easing.def] (x, T, B, C, D);},easeinquad:function (x, T, B, C, D) {return c* (t/=d) *t + b;},e Aseoutquad:function (x, T, B, C, D) {return-c * (t/=d) * (t-2) + b;},easeinoutquad:function (x, T, B, C, D) {if (T/=D/2) < 1) return c/2*t*t + B;RETURN-C/2 * ((--T) * (t-2)-1) + b;},easeincubic:function (x, T, B, C, D) {return c* (T/=d) *t* T + b;},easeoutcubic:function (x, T, B, C, D) {return c* ((t=t/d-1) *t*t + 1) + b;},easeinoutcubic:function (x, T, B, C, D {if ((T/=D/2) < 1) return c/2*t*t*t + B;return c/2* ((t-=2) *t*t + 2) + b;},easeinquart:function (x, T, B, C, d) {Retu RN c* (t/=d) *t*t*t + b;},easeoutquart:function (x, T, B, C, D) {return-c * ((t=t/d-1) *t*t*t-1) + B;},easeinoutquart:fu Nction (x, T, B, C, D) {if (T/=D/2) < 1) return c/2*t*t*t*t + B;RETURN-C/2 * ((t-=2) *t*t*t-2) + B;},easeinquint:fu Nction (x, T, B, C, D) {return c* (t/=d) *t*t*t*t + b;},easeoutquint:function (x, T, B, C, D) {return c* ((t=t/d-1) *t*t*t*t + 1) + B;},easeinoutquinT:function (x, T, B, C, D) {if ((T/=D/2) < 1) return c/2*t*t*t*t*t + B;return c/2* ((t-=2) *t*t*t*t + 2) + B;},easeinsin E:function (x, T, B, C, D) {return-c * Math.Cos (T/D * (MATH.PI/2)) + C + b;},easeoutsine:function (x, T, B, C, d) {Retu RN c * Math.sin (T/D * (MATH.PI/2)) + b;},easeinoutsine:function (x, T, B, C, D) {RETURN-C/2 * (Math.Cos (math.pi*t/d)-1 ) + b;},easeinexpo:function (x, T, B, C, D) {return (t==0)? B:c * MATH.POW (2, (T/D-1) + b;},easeoutexpo:funct Ion (x, T, B, C, D) {return (T==d)? B+c:c * (-math.pow (2, -10 * t/d) + 1) + b;},easeinoutexpo:function (x, T, B, C, D) {if (t==0) return b;if (T==d) return b+c;if ((T/=D/2) < 1) return C/2 * MATH.POW (2, Ten * (t-1)) + B;return C/2 * (-M Ath.pow (2, -10 *--t) + 2) + b;},easeincirc:function (x, T, B, C, D) {return-c * (MATH.SQRT (1-(T/=d) *t)-1) + B;},eas Eoutcirc:function (x, T, B, C, D) {return c * MATH.SQRT (1-(t=t/d-1) *t) + b;},easeinoutcirc:function (x, T, B, C, d) {i F ((T/=D/2) < 1) RetuRN-C/2 * (MATH.SQRT (1-t*t)-1) + B;return C/2 * (MATH.SQRT (1-(t-=2) *t) + 1) + b;},easeinelastic:function (x, T, B, C, D) {var s=1.70158;var p=0;var a=c;if (t==0) return B; if ((T/=d) ==1) return b+c; if (!p) p=d*.3;if (A < Math.Abs (c)) {a=c; var S=p/4;} else var s = p/(2*math.pi) * Math.asin (C/A); return-(A*math.pow (2,10*) * T-=1 ((math.sin) * (t*d-s)/p) + 2*math.pi Aseoutelastic:function (x, T, B, C, D) {var s=1.70158;var p=0;var a=c;if (t==0) return B; if ((T/=d) ==1) return b+c; if (!p) p=d*.3;if (A < Math.Abs (c)) {a=c; var S=p/4;} else var s = p/(2*math.pi) * Math.asin (C/A), return A*math.pow (2,-10*t) * Math.sin ((t*d-s) * (2*MATH.PI)/p) + C + b;},ease Inoutelastic:function (x, T, B, C, D) {var s=1.70158;var p=0;var a=c;if (t==0) return B; if ((T/=D/2) ==2) return b+c; if (!p) p=d* (. 3*1.5), if (A < Math.Abs (c)) {a=c; var S=p/4;} else var s = p/(2*math.pi) * Math.asin (C/A), if (T < 1) return-.5* (A*math.pow (2,10*) * T-=1 ((math.sin) * (t*d-s . PI)/p) + B;return A*math.pow (2,-10* (t-=1)) * Math.sin ((t*d-s) * (2*MATH.PI)/p) *.5 + C + b;},easeinback:function (x, T, B, C , d, s) {if (s = = undefined) s = 1.70158;return c* (t/=d) *t* ((s+1) *t-s) + b;},easeoutback:function (x, T, B, C, D, s) {I F (s = = undefined) s = 1.70158;return c* ((t=t/d-1) *t* ((s+1) *t + s) + 1) + b;},easeinoutback:function (x, T, B, C, D, s) { if (s = = undefined) s = 1.70158; if ((T/=D/2) < 1) return c/2* (t*t* (((s*= (1.525)) +1) + *t-s B;return ((c/2*) t-=2 (((*t* (s*=)) +1) 1.525 + s) + 2) + B; },easeinbounce:function (x, T, B, C, D) {return c-jquery.easing.easeoutbounce (x, d-t, 0, C, D) + B;},easeoutbounce:fu Nction (x, T, B, C, D) {if (T/=d < (1/2.75)) {return c* (7.5625*t*t) + B;} else if (T < (2/2.75)) {return c* (7.5625 * (t-= (1.5/2.75)) *t +.) + B;} else if (T < (2.5/2.75)) {return c* (7.5625* (t-= (2.25/2.75)) *t +. 9375) + B;} else {return c* (7.5625* (t-= (2.625/2.75)) *t +. 984375) + b;}},easeinoutbounce:function (x, T, B, C, D) {if (T < D/2) retUrn jQuery.easing.easeInBounce (x, t*2, 0, C, D) *. 5 + B;return jQuery.easing.easeOutBounce (x, t*2-d, 0, C, D) *. 5 + c* .5 + B;}}); * * * TERMS of use-easing equations * * Open source under the BSD License. * * copyright©2001 Robert Penner * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * is permitted provided that the F Ollowing conditions is met: * * redistributions of source code must retain the above copyright notice, this list of * C Onditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following D Isclaimer in the documentation and/or and materials * provided with the distribution. * * Neither the name of the author nor the names of contributors May is used to endorse * or promote products derived fr Om this software without specific prior written permission. * * This software are provided by the COPYRIGHT HOLDERs and CONTRIBUTORS "as is" and any * EXPRESS OR implied warranties, including, but not LIMITED to, the implied WARRANT IES of * merchantability and FITNESS for A particular PURPOSE is disclaimed. In NO EVENT shall the * COPYRIGHT OWNER OR CONTRIBUTORS is liable for any DIRECT, INDIRECT, incidental, special, * exemp Lary, 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-on-the-software, even IF advised * of the possibility of SUCH DAMAGE. * */
The display and hidden-fadeout-fadein-fadetoggle-fadeto of jquery animations