Is there a way to achieve a 180° rotation of the caret in a dropdown menu upon clicking it, creating the illusion of an animation?
I would prefer to accomplish this using CSS only, without the need for JavaScript, but I am open to any suggestions.
.select {
font-family: 'Roboto';
font-size: 16px;
font-weight: bold;
color: red;
background-color: white;
border: thin solid red;
border-radius: 8px;
height: 45px;
text-align: center;
margin-right: 10px;
resize: none;
outline: none;
cursor: pointer;
}
<div class="city_select_dropdown_container">
<div>
<span style="color:white;font-size:12px">City</span>
<form>
<select class="select">
<option>Option 1 </option>
<option>Option 2 </option>
</select>
</form>
</div>
</div>
I am attempting to make changes to the CSS within this div/form, but I am running into some obstacles.