Fix #12846. Restore overflow when animation is stopped.