pauseAnimate and stopAnimate need to stop sequence animate?

pauseAnimate and stopAnimate need to stop sequence animate?

@abstract

Sorry, @amihanya - just found this again.

For a sequence animate() give the animate() an id and pauseAnimate() or stopAnimate() that id. We have added this information to the docs.

const tiles = new Tile({
	obj:new Rectangle({color:series(yellow,blue,green)}).centerReg(), 
	cols:10, 
	rows:10
})
	.sca(.5)
	.center()
	.animate({
		id:"tiles",
		props:{scale:2},
		loop:true,
		loopWait:.3,
		rewind:true,
		rewindWait:1.5,			
		sequence:.01
	});

timeout(1, ()=>{
	pauseAnimate("tiles")
});
1 Like