Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Fix begin callback on TL children

Julian Garnierbec2f5eb0819
diff --git a/src/index.js b/src/index.js
index 04c988ec..73c2bdc7 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1010,7 +1010,7 @@ function anime(params = {}) {
const insReversed = instance.reversed;
const insTime = adjustTime(engineTime);
instance.progress = minMax((insTime / insDuration) * 100, 0, 100);
- if (!instance.began) {
+ if (!instance.began && instance.currentTime > 0) {
instance.began = true;
setCallback('begin');
setCallback('loopBegin');