我正在尝试使用 framer.js 创建一个脉动、循环的动画效果我已经将一个图像加载到一个图层中,我想不断地放大和缩小它。我不知道如何缩小它并无限期地循环播放动画。这是我目前拥有的:
imageLayer = new Layer({x:0, y:0, width:128, height:128, image:"images/icon.png"})
imageLayer.center()
animationA = new Animation({
layer: imageLayer,
properties: {scale: 2.0},
curve: "ease-in-out"
})
animationA.start()