-
-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Labels
Description
I need to add the scene items dynamically. But when I add any new item, it's stacked and animations are not working. I have tried to add new item like below. What will be the proper way to add items dynamically?
Description
const newLayer = JsCanvas.newItem(`.Layer-${name}`, {
iterationCount: 1,
selector: true,
delay: delay,
});
newLayer.set(keyframes);
JsCanvas.setItem(`.Layer-${name}`, newLayer);