toastifier
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "toastifier", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Light and Simple Multi-Framework Toaster", | ||
@@ -5,0 +5,0 @@ "main": "script.js", |
@@ -339,6 +339,11 @@ function toastifier(msg, options = {}) { | ||
h.addEventListener("mouseleave", () => { | ||
h.style.animation = `animated_exit ${animation_time}s`; | ||
setTimeout(() => { | ||
h.style.display = "none"; | ||
}, 800); | ||
h.style.animation = `animated_exit ${animation_time}s`; | ||
}, 500); | ||
setTimeout(() => { | ||
h.remove(); | ||
if (document.getElementsByClassName("toastifier__alert").length === 0) { | ||
container.remove(); | ||
} | ||
}, 1500); | ||
}); | ||
@@ -345,0 +350,0 @@ } |
17677
351