The left property is animated, so it has to be like this. I first tried right: 0; left: auto.