时间线回放设置
指定时间轴的时间和行为。
时间轴播放设置直接在 createTimeline() 参数 Object 中定义。
createTimeline({
┌───────────────────┐
│ defaults: { │
│ ease: 'out(3)', │
│ duration: 500, │
│ }, ├─ Playback Settings
│ loop: 3, │
│ alternate: true, │
│ autoplay: false, │
└───────────────────┘
onBegin: () => {},
onLoop: () => {},
onUpdate: () => {},
});
在本节