pip: fix show/hide animation sync bug