Moved transition to JQUERY animation.