add simple animation rules in css