Closed afc163 closed 8 years ago
3。vars 里的 type 有用的。。
4.这块难搞把。。如果单个动画参数是可以的。。。时间轴时就不行了吧。。我当初也想提出来的。。。发现如果有4个,,那我要在第3个参数结束后调用。。。如果在外面不就要算了???
可以加一个。
onChange(moment, currentKeyframe, index) {
// currentKeyframe
// currentKeyframe.currentDuration => currentDuration
}
Please make a simple API
Please speak Chinese!
vars
改为animation
或keyframes
。type={start|pause|reverse|restart}
不是声明式的语法,可以拆为paused={true|false}
reverse={true|false}
。可加入时间轴的参数来控制动画的状态。vars
里的 type 感觉没用。vars
的onXxxx
可以都提到 Tween 上面的 onChange,相关信息放在参数里。