Notification animation not working

I’m having a problem where when I open a notification, there isn’t the animation for it to be shown, it just pops into view. When I close the notification it animates correctly. Any ideas?

Code:

Notification exportNotification = new Notification();
exportNotification.setDuration(0);
exportNotification.setPosition(Notification.Position.TOP_CENTER);

VerticalLayout notificationLayout = new VerticalLayout();
//Ommitted: (Adds the components to the layout)

exportNotification.add(notificationLayout);
exportNotification.open();

Could be related to the fact that you are adding components instead of just text

I thought that was a possibility but then why would it animate correctly to close

Tbh I haven’t tested the theory tho

It’s totally possible and valid… but I remember that there was some kind of problem with it :sweat_smile: