synchronized css animations with message changes