JavaScript animation engine
make sure the animation is removed from engine before playing
Julian Garnier240c205ddb0e
diff --git a/anime.js b/anime.jsindex 17cae457..ec4426de 100644--- a/anime.js+++ b/anime.js@@ -575,6 +575,7 @@}anim.play = function(params) {+ anim.pause();if (params) anim = mergeObjects(createAnimation(mergeObjects(params, anim.settings)), anim);time.start = 0;time.last = anim.ended ? 0 : anim.currentTime;