How can I rotate upside down (180') the caret from the dropdown menu when clicked, so that when clicking the dropdown it almost looks like an animation?
It would be great if that could be done without javascript and just CSS, but open to any suggestion.
.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 trying to modify the CSS inside this div/form, but It does not let me.