Hi Dan
There seems to be a bug in the new version of the animate() code. If I send an array of objects to the animate function, to be sequentially animated, I get an error on the when the "call" callback is called.
Here is example code that breaks in ZIM Editor:
// Given F, S, W, H or frame, stage, stageW, stageH
const sequenceArr = [
new Rectangle(100, 100, blue).centerReg().sca(0).mov(-150),
new Rectangle(100, 100, red).centerReg().sca(0),
new Rectangle(100, 100, green).centerReg().mov(150).sca(0),
]
animate({
target: sequenceArr,
props: {
scale: 1
},
sequenceReverse: true,
rewind: false,
time: 1,
ease: "quadOut",
sequence: 0.4,
sequenceCall: (piece) => {
zog("sequence call");
},
call: () => {
zog("complete");
}
});
Thank you for your attention!
Moshe