Forums

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?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #206609
    Leland
    Participant

    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. :)

    #206610
    Leland
    Participant

    Disregard this, figured it out.

    For anyone wondering, you have to set the original position on div. Example: http://codepen.io/leland/pen/NqVGEx

    #206625
    josh
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.