migrate jQuery's animate function to jQueryAnimate