delay on animate funciton