fixed notification clearing bug

This commit is contained in:
Jack 2020-08-28 16:15:32 +01:00
parent 44f97844e7
commit 67ba8ecedc

View file

@ -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`,
},