The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Why can't I animate relative positioned div left or right?
I’m struggling hard to animate a relative positioned div. I’ve set up a reduced test case here: http://codepen.io/leland/pen/zGQvLP
Is this not possible, or am I missing something?
Thanks in advance for any help. :)
Disregard this, figured it out.
For anyone wondering, you have to set the original position on div. Example: http://codepen.io/leland/pen/NqVGEx
Some browsers (e.g. Safari) are smart enough to assume a starting position for the transition but in general, it’s best practise to have both a start and end value for transitions.