Jump to content
Search Community

MattiasJ

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by MattiasJ

  1. I'm setting up a timeline where divs should move around as the timeline plays.

    The problem have is that timeline actions fires immediately when I define the timeline.

    See this pen

    See the Pen fkDBK by anon (@anon) on CodePen


    The z-index should change after some time but it doesn't it changes immediately .

     

    If the code look like this it doesn't work:

    tl.add("lab2", 1);

    tl.add( TweenMax.to('#d1', 0, {zIndex: 2}), "lab2");

     

    It's not a tween I now, but I want to be able to init divs at certain points in the time line before tweening like setting z-index, top, left etc. But this doesn't work.

     

    Any solution to this?

×
×
  • Create New...