javascript tweenmax并行 和串行

     var tm = new TimelineMax();

        tm.to(mesh.scale, 0.5, {x:0.3,delay:0, ease: Linear.easeNone});//   
          var tm = new TimelineMax();
        tm.to(mesh.scale,0.5, {y:0.3,delay:0, ease: Linear.easeNone});//   
          var tm = new TimelineMax(); 
        tm.to(mesh.position,0.5, {y:200,delay:0,ease: Linear.easeNone});//  

tweenmax是并行 

tweenmax是串行的

  var tm = new TimelineMax();

        tm.to(mesh.scale, 0.5, {x:0.3,delay:0, ease: Linear.easeNone});//   
   
        tm.to(mesh.scale,0.5, {y:0.3,delay:0, ease: Linear.easeNone});//   

        tm.to(mesh.position,0.5, {y:200,delay:0,ease: Linear.easeNone});// 


如果遇到什么不懂的地方直接关注公众号留言(本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利。)
作者:newmiracle
出处:https://www.cnblogs.com/newmiracle/

 
原文地址:https://www.cnblogs.com/newmiracle/p/14333442.html