目标
指定应用属性值更改的元素。
动画目标在 animate()
函数的第一个参数中定义。
animate(
┌────────────┐
│ '.square', ├─ Targets
└────────────┘
{
translateX: 100,
scale: 2,
opacity: .5,
duration: 400,
delay: 250,
ease: 'out(3)',
loop: 3,
alternate: true,
autoplay: false,
onBegin: () => {},
onLoop: () => {},
onUpdate: () => {},
});
本节内容