From b987a8fdd9a6c2a85e95effd73e15746a3ffc495 Mon Sep 17 00:00:00 2001 From: sD Date: Thu, 26 Dec 2019 18:07:00 +0100 Subject: reset the animation --- webAO/client.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webAO') diff --git a/webAO/client.js b/webAO/client.js index c03d32e..9ecae71 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1135,6 +1135,11 @@ class Viewport { this.sfxplayed = 0; this.textTimer = 0; this._animating = true; + + // Reset CSS animation + document.getElementById("client_fg").style.animation = ""; + document.getElementById("client_gamewindow").style.animation = ""; + clearTimeout(this.updater); // If preanim existed then determine the length if (chatmsg.preanim !== "-") { -- cgit