Add Animations

Notification animations are optional.

To add an intro/outro animation, simply create an animation inside the user widget editor, then set the animation using those functions:

I do recommend that you set the animation in the PreConstruct only because this is the first life cycle of a user widget.

In the screenshot, you can see that I created an animation that I called IntroAnimation and connected that only to the SetNotificationAnimation. That's because if you don't specify an exit animation, the notification system will use the IntroAnimation as the outro animation but reversed.

Last updated