- TweenMax 中文手册 / TweenLite 中文手册
- TweenMax()
- TweenMax.to()
- TweenMax.from()
- TweenMax.fromTo()
- TweenMax.staggerTo()
- TweenMax.staggerFrom()
- TweenMax.staggerFromTo()
- TweenMax.delayedCall()
- TweenMax.set()
- delay
- ease
- paused
- immediateRender
- overwrite
- useFrames
- lazy
- autoCSS
- callbackScope
- repeat
- repeatDelay
- yoyo
- yoyoEase
- startAt
- cycle
- onComplete
- onCompleteParams
- onCompleteScope
- onReverseComplete
- onReverseCompleteParams
- onReverseCompleteScope
- onStart
- onStartParams
- onStartScope
- onUpdate
- onUpdateParams
- onUpdateScope
- onOverwrite
- onRepeat
- onRepeatParams
- onRepeatScope
- .eventCallback()
- .play()
- .pause()
- .paused()
- .restart()
- .resume()
- .reverse()
- .reversed()
- .seek()
- .timeScale()
- .duration()
- .totalDuration()
- .time()
- .totalTime()
- .progress()
- .totalProgress()
- .delay()
- .invalidate()
- .isActive()
- .updateTo()
- .startTime()
- .endTime()
- .repeat()
- .repeatDelay()
- .yoyo()
- .data
- TweenLite.defaultEase
- TweenLite.defaultOverwrite
- TweenLite.onOverwrite
- TweenLite.selector
- .target
- .timeline
- .vars
- TweenMax.ticker
- TweenMax.getTweensOf()
- TweenMax.getAllTweens()
- .kill()
- TweenMax.killDelayedCallsTo()
- TweenMax.killTweensOf()
- TweenMax.killAll()
- TweenMax.killChildTweensOf()
- TweenLite.render()
- TweenMax.lagSmoothing()
- TweenMax.globalTimeScale()
- TweenMax.isTweening()
- TweenMax.pauseAll()
- TweenMax.resumeAll()
- 下载 TweenMax
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
delay
delay:Number
动画开始之前的延迟秒数(以帧为单位时则为帧数)。 delay适用于TweenMaxTweenLitedelay的参数
delay 示例
延迟三秒开始动画
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;
line-height:50px;
text-align:center;
color:#fff;
font-size:18px;
border-radius:6px;
margin-top:4px;
display:inline-block
}
.green{
background-color:#6fb936;
}
new TweenMax('.box', 3, {
x: 500,
delay: 3
});
time={score:3}
TweenMax.to(time, 3, {
score: 0,
ease: Power0.easeNone,
onUpdate:function(){
document.querySelector(".box").innerHTML=Math.ceil(time.score);
}
});
delay返回值
delay的补充说明
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论