.brand-img::after {
content: '';
position: relative;
background-image: url('https://i.sstatic.net/Y2vyB.png');
background-repeat: no-repeat;
float: left;
margin-left: 15px;
transition: all 1.8s ease;
width: 135px;
height: 135px;
}
.brand-slider-inside img {
border-radius: 50%;
position: absolute;
padding: 14px;
left: 0px;
top: 0px;
width: 135px;
height: 135px;
}
.brand-img:hover::after {
transform: rotate(360deg) translate(0px);
}
<div class="brand-slider-inside">
<div class="brand-img"> <img src="https://i.sstatic.net/tz2aw.png" alt="brand img"> </div>
</div>
When hovering, the image rotates 360 degrees in a circle with a gradient border effect. Can you assist with achieving a smooth rotation in a perfect circle?