Add animated effect for errors