Converted jquery.animate to jquery.transit