adding animation to flash message