We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1362c0 commit 29fd5baCopy full SHA for 29fd5ba
src/index.ts
@@ -118,11 +118,17 @@ export class Toast {
118
if (!el)
119
return
120
121
+ el.style.opacity = '0'
122
+ el.style.visibility = 'hidden'
123
+ el.style.transform = 'translateY(10px)'
124
+
125
this.stopTimer()
- container.removeChild(el)
- instances.delete(this)
126
- sortToast()
127
+ setTimeout(() => {
128
+ container.removeChild(el)
129
+ instances.delete(this)
130
+ sortToast()
131
+ }, 150)
132
}
133
134
/**
0 commit comments