I would like to rotate the .profile__photo--border-2 div but it keeps on translating. And it doesn't rotate at all.
Here is the code.
Maybe I'm doing something wrong.
&__photo { position: relative; z-index: 3; &--border-1, &--border-2 { position: absolute; height: 110px; width: 110px; top: 48%; left: 50%; transform: translate(-50%, -50%); cursor: pointer; border-radius: 50%; border-width: 1px; border-style: solid; border-color: rgb(37, 184, 184) rgb(37, 184, 184) rgb(37, 184, 184) transparent; transition: all 1.5s ease-in-out; } &--border-2 { height: 120px; width: 120px; border-color:rgb(37, 184, 184) transparent rgb(37, 184, 184) rgb(37, 184, 184); } &--border-2:hover { /* Something wrong going on here */ width: 120px; height: 120px; transform-origin: 0 0; transform: rotateZ(360deg); } & img { height: 100px; width: 100px; border-radius: 50%; z-index: 3; } } There.