Update $.fn.animate to restore overflow-x and overflow-y separately. Fixes #7111.