adding animations on block elements