使用频率 | 中 |
所属模块 | Std.animation.keyframes |
成员类型 | 公有成员函数 |
Number iterationCount();
Object iterationCount(Number count);
类型 | 描述 |
Number | keyframes动画需要执行的次数. |
1. 当前设置的iterationCount值
2. this对象
var keyframes = new Std.animation.keyframes({
duration:1000,
rules:{
from:{
left:10
},
to:{
left:100
}
},
on:{
progress:function(data){
console.log(data.left);
}
}
});
keyframes.iterationCount(2).start();