Skip to content

What is the proper way to add items dynamically? #82

@tareq0065

Description

@tareq0065

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions