Skip to content

Commit 56b006a

Browse files
committed
start implementing play/pause in main lib
1 parent e8e4b1a commit 56b006a

File tree

4 files changed

+36
-10
lines changed

4 files changed

+36
-10
lines changed

demo/content.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ addCanvas(1.8, (ctx, width, height) => {
684684

685685
animation.transition(genFrame({duration: 0}));
686686

687+
ctx.canvas.onclick = animation.playPause;
688+
687689
return `Points can be removed at the end of animations as the target shape has been reached.
688690
However if the animation is interrupted during interpolation there is no opportunity to
689691
clean up the extra points.`;

0 commit comments

Comments
 (0)