Add css transition for toggle