Skip to content

Commit 9d0d4aa

Browse files
author
KHOUBZA Younes
committed
add fl-show class after 100ms to fix show transition
1 parent 70f1771 commit 9d0d4aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/flasher/src/flasherFactory.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export default class FlasherFactory implements NotificationFactoryInterface {
128128
container.prepend(template);
129129
}
130130

131-
requestAnimationFrame(() => template.classList.add('fl-show'));
131+
setTimeout(() => {
132+
template.classList.add('fl-show');
133+
}, 100);
132134
}
133135

134136
removeNotification(template: HTMLElement) {

0 commit comments

Comments
 (0)