Jump to content
Search Community

gerasim9

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by gerasim9

  1. Hello!
    1) div moves to 200 pixels to the right and takes the position 300px - it's ok
    2) and next div moves to 50 pixels to the left - why? I thought it was specified the absolute position (left:50px)
    And how I can move the block to the absolute position  (left:50px) at the second tween (if the first tween use  "x:..." )

    var logo = document.getElementById("elem");
    new TweenMax(logo, 2, {x:200});
    new TweenMax(logo, 2, {css:{left:"50px"}}).delay(2);
    
    ......
    
    <div style="left: 100px; top: 100px; position:absolute;" id="elem">blablabla</div>
    
×
×
  • Create New...