mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 09:34:35 +08:00
fixed notification clearing bug
This commit is contained in:
parent
44f97844e7
commit
67ba8ecedc
1 changed files with 3 additions and 3 deletions
|
@ -117,20 +117,20 @@ function showNotification(text, time) {
|
|||
let noti = $(".notification");
|
||||
noti.text(text);
|
||||
noti.css("top", `-${noti.outerHeight()}px`);
|
||||
noti.stop(true, true).animate(
|
||||
noti.stop(true, false).animate(
|
||||
{
|
||||
top: "1rem",
|
||||
},
|
||||
250,
|
||||
"swing",
|
||||
() => {
|
||||
noti.stop(true, true).animate(
|
||||
noti.stop(true, false).animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
time,
|
||||
() => {
|
||||
noti.stop(true, true).animate(
|
||||
noti.stop(true, false).animate(
|
||||
{
|
||||
top: `-${noti.outerHeight()}px`,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue