Add transition effects to li and button