Add animate functionality by css