paused

paused: Boolean
如果设置为true,动画将在创建时立即暂停。默认false
paused适用于TweenMaxTweenLite

paused效果展示

  • HTML
  • CSS
  • JS
  • 展示

body {
    background: #f8f8f8;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 0 10px;
    padding: 0;
}
.box {
    width:50px;
    height:50px;
    border-radius:6px;
    margin-top:4px;
    display:inline-block
  }
.green{
    background-color:#6fb936;
  }
tween = new TweenMax('.box', 3, {
    x: 500,
    paused: true
});

playBtn = document.getElementById("playBtn")
playBtn.onclick = function() {
    tween.play();
}
重播

转载原创文章请注明:文章转载自:TweenMax中文网 [https://www.tweenmax.com.cn]
本文地址:https://www.tweenmax.com.cn/api/tweenmax/paused