可动画属性
定义 Targets 的哪些属性可以被动画化。
可动画属性在animate()函数的Object参数中定义。
animate('.square', {
┌──────────────────┐
│ translateX: 100, │
│ scale: 2, ├─ Animatable Properties
│ opacity: .5, │
└──────────────────┘
duration: 400,
delay: 250,
ease: 'out(3)',
loop: 3,
alternate: true,
autoplay: false,
onBegin: () => {},
onLoop: () => {},
onUpdate: () => {},
});
在本节