Animate between states with the View Transitions API