0 Replies Latest reply on Apr 25, 2015 6:45 AM by mads18950258

    css left and keyFrame conflicts

    mads18950258 Level 1



      im getting some funny results positioning elements programmatically in conjunction with timeline keyframes.


      let's say i have element Obj1 positioned at Left 100px and have a keyframe in the timeline for left.

      if i then want to move it to left 200px by -> sym.$("obj1").css("left", 200); then my element is placed at left 300px, as if the coordinate system was repositioned to the keyframes position and then 200 is added.

      if i try the same without having a keyframe in the timeline, then everything works perfectly.


      what is happening here ?

      Why ?

      and most important, is there a trick around this so i can animate elements but still rely on the coordinate system of it's container ?...