I want to animate an element's position change with CSS transition, but it is not working even when I use the transition on all properties, as in the example here: http://jsfiddle.net/yFy5n/3/
However, I don't want my final solution to apply transition to all properties, but instead only on the position change. So the color change should be instant, only the position change from left to right should be animated (the opposite of what is happening now).
leftproperty defaults toauto. Transitions will never work if one of the start or end points is that value. Both have to be defined. The reason why the margin solution in the answer below works is because all four sides of the margin default to0, so it has that defined value set already.