change animation to css3