JavaScript animation engine
fix: blinking issue when reversing animation (fixes: #623, #586, #503, #577)
kn0wn4d51b837dc38
diff --git a/documentation/index.html b/documentation/index.htmlindex 94a5e7aa..180115ac 100644--- a/documentation/index.html+++ b/documentation/index.html@@ -2687,7 +2687,10 @@ var animation = anime({easing: 'easeInOutSine'});-document.querySelector('.reverse-anim-demo .reverse').onclick = animation.reverse;+document.querySelector('.reverse-anim-demo .reverse').onclick = () => {+ animation.reverse();+ animation.play();+}/*DEMO*/}</script>diff --git a/src/index.js b/src/index.jsindex e90d050d..27d959c4 100644--- a/src/index.js+++ b/src/index.js@@ -1115,6 +1115,7 @@ function anime(params = {}) {instance.reverse = function() {toggleInstanceDirection();+ instance.completed = instance.reversed ? false : true;resetTime();}