active button switch is not performed if page is currently animated