change animate to css