Adds css animation