Most modern operating systems allow to disable animations, also known
as "reduced motion", which is a very important accessibility feature
for people suffering from motion sickness.
In CSS Level 5, a media query `prefers-reduced-motion` is available to
check for this specific setting, if the browser can get the
configuration from the operating system (looking at you, Chrome and
GNOME).
With Bootstrap 5, `prefers-reduced-motion` is already in place,
disabling all animations caused by CSS. However, the notification
component is partially animated via JavaScript and thus the media query
wasn't taken into consideration and notifications were still animated.
The media query is now checked on JavaScript side as well to avoid
animating notifications.