动画播放设置
指定动画的 timing 和行为。
播放设置属性直接在 animate()
参数 Object
中定义。
animate('.square', {
translateX: 100,
scale: 2,
opacity: .5,
duration: 400,
delay: 250,
ease: 'out(3)',
┌───────────────────┐
│ loop: 3, │
│ alternate: true, ├─ Playback Settings
│ autoplay: false, │
└───────────────────┘
onBegin: () => {},
onLoop: () => {},
onUpdate: () => {},
});
本节内容