Answers for "css transition on click"

CSS
0

css transition on click

.crossRotate {
    outline: 0;
    /* other styles... */
}

.crossRotate:focus {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

<img class="crossRotate" src="http://placehold.it/100" tabindex="1" />
Posted by: Guest on May-06-2022

Browse Popular Code Answers by Language