diff options
| author | sD <stoned@derpymail.org> | 2019-12-26 18:07:00 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2019-12-26 18:07:00 +0100 |
| commit | b987a8fdd9a6c2a85e95effd73e15746a3ffc495 (patch) | |
| tree | e50fde76f813608a446c23df6e16712ba4c7d145 /webAO | |
| parent | 11e800bdf67dd3f5a1a63f7e9bd83fbb79a3d30e (diff) | |
reset the animation
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 5 |
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 !== "-") { |
