Add conditional to test for the end of the fade-out animation

Closes #3166

- Checks the name of the animation that just ended, so the notification is only removed when the `fade-out` is removed