I have a code that plays existing timelines on button click. I reuse one of the timeline in different places on website.
The problem is popupOpen timeline with reverse plays correctly first time. And second time it ignores delay 2 seconds and plays instantly.
I tried all possible methods to solve this - wrappet it in setTimeout, setInterval etc. And nothing helps. I just don't understand why.
Array.from(awrdBtn).forEach(function (btn) {
btn.onclick = function () {
popupOpen.play();
awrds.play();
};
});
awrdBtnClose.onclick = function () {
awrds.timeScale(2).reverse();
popupOpen.reverse().delay(2);
};