Replacing jQuery UI's `.animate()` function with jQuery equivalent.