jQuery enhanced animation plugin uses CSS transitions without having to write custom code for browsers with transition support
The alternative is not very happy: you can add a function detection library, such as Modernizr, and then write specific code for each case, for example ...
if (Modernizr.csstransitions) { $("#yourdiv").css({ "-webkit-transform" : "translate(0, 10)", "-o-transform" : "translate(0, 10)", "-moz-transform" : "translate(0, 10)", "-ms-transform" : "translate(0, 10)", "transform" : "translate(0, 10)" }); } else {
source share