Jump to content
Search Community

billy

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by billy

  1. Hi,

     

    I found difficult to under the following code example, what's the .add() doing there

     


     

    from reading the api i understand it's adding a label, but still find its confuse, can someone explain? 

     

    Thanks

     

    tl.to(car, 1, {left:177, ease:Back.easeOut})

      .add("up", "+=1")

      .to(car, 1, {top:70}, "up")

      .to(lift, 1, {top:167}, "up")

      .from([man1, man2], 1, {left:-100}, "up+=0.8")

      .from(man3, 1, {left:600}, "up")

      .to(man3, 0.2, {scaleX:-1}, "+=1")

      .staggerTo([man3, man2, man1], 1, {left:600, ease:Power2.easeIn}, 0.5, "menOut")

      .to(lift, 1, {top:297}, "down")

      .to(car, 1, {top:200}, "down")

      .to(car, 1, {left:600, ease:Power1.easeIn}, "out")

     

×
×
  • Create New...