JQuery and animations
Something like this, I would suggest using a combined slide effect and fade out. This is a much more natural look, and therefore does not cause user noise.
Working script: http://jsfiddle.net/3zh6h/32/
Corresponding piece of code (not used in the script, but here to demonstrate how to do this taking into account the best coding methods):
jQuery.fn.slideFadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); };
Best practics
As for best practices, you can find a very nice post about custom animations and how to record them repeatedly using here .
There is no βjQuery footer animationβ per se, at least that I know of, but you can use popular popular websites to know what works and what doesn't. Examples of them will not be useful, as it depends on the nature and context of your website.
CSS
I would not recommend CSS transitions, since the specifications are not finalized (official projects, discussions can be found here ).
In addition, they are not compatible with multiple browsers, especially wrt older browsers. But then again, this is just my opinion.
Varun vohra
source share