JavaScript animation engine
Merge PR 271
Julian Garnier5b5cbd6053ed
diff --git a/anime.js b/anime.jsindex f3edc84d..4819a0e9 100644--- a/anime.js+++ b/anime.js@@ -855,7 +855,7 @@function resetTime() {startTime = 0;- lastTime = adjustTime(instance.currentTime);+ lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);}function adjustTime(time) {diff --git a/documentation/examples/anime-timeline-stresstest.html b/documentation/examples/anime-timeline-stresstest.htmlindex f328736f..91d11cea 100644--- a/documentation/examples/anime-timeline-stresstest.html+++ b/documentation/examples/anime-timeline-stresstest.html@@ -110,7 +110,7 @@document.querySelector('.controls .restart').onclick = tl.restart;var wrapperEl = document.querySelector('.wrapper');- var numberOfEls = 10;+ var numberOfEls = 1000;var fragment = document.createDocumentFragment();function createEl(i) {diff --git a/documentation/index.html b/documentation/index.htmlindex 62ac277c..ab20cfed 100644--- a/documentation/index.html+++ b/documentation/index.html@@ -2069,6 +2069,8 @@ timeline.seek(timeStamp);/*DEMO*/var controlsProgressEl = document.querySelector('.timeline-controls-demo .progress');+anime.speed = .1;+var tl = anime.timeline({direction: 'alternate',loop: true,