I have an element that I want to flip it as you click on it, this element is a collapse:
<td><a class="fa fa-chevron-down iconedetalhes" data-toggle="collapse" href="#collapse{{i}}" aria-expanded="false" aria-hidden="true"></a>
<p class="collapse" id="collapse{{i}}">
teste
</p>
My class:
.iconedetalhes:focus{
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
transition-duration: 0.7s!important;
}
But in this way I have two problems:
The first is that after I click on the element it flips, but then it does not go off when I click again.