aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-26 18:07:00 +0100
committersD <stoned@derpymail.org>2019-12-26 18:07:00 +0100
commitb987a8fdd9a6c2a85e95effd73e15746a3ffc495 (patch)
treee50fde76f813608a446c23df6e16712ba4c7d145
parent11e800bdf67dd3f5a1a63f7e9bd83fbb79a3d30e (diff)
reset the animation
-rw-r--r--webAO/client.js5
1 files changed, 5 insertions, 0 deletions
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 !== "-") {