Add CSS animation on alerts