I don't understand, why are we using a transition in one case and an animation in the other ? :/