0

I cannot make a rotation work inside an <a href=""></a> tag.

I have this for example:

.rt {
  -webkit-transition: -webkit-transform .4s ease-in-out;
  transition: transform .4s ease-in-out;
}

.rt:hover {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
<a class="btn btn-link ml-auto">SING UP <span class="rt">/</span> ENTER</a>

But nothing happens to the forwards slash. I can add .rt to the a tag but I only want the forwards slash to rotate.

doğukan
  • 23,073
  • 13
  • 57
  • 69
Mark
  • 731
  • 2
  • 10
  • 29

0 Answers0