FBE & Kirusoft DEV
by Kirubel Girma
HTML
<div class="contm">
<img src="https://image.ibb.co/eLqJpp/unnamed.png" alt="" class="vnl">
<div class="lbl"></div>
</div>
CSS
.contm {
height: 13em;
width: 13em;
position: relative;
}
.lbl {
border-radius: 0.4em;
background: url("https://image.ibb.co/dLrpep/img_4818.jpg");
height: 13em;
width: 13em;
position: absolute;
background-position: center;
background-size: contain;
cursor: pointer;
}
.vnl {
height: 13em;
width: 13em;
position: absolute;
left: 6em;
-webkit-animation: spin 3s; /* Safari 4.0 - 8.0 */
-webkit-animation-iteration-count: infinite; /* Safari 4.0 - 8.0 */
animation: spin 3s;
animation-iteration-count: infinite;
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes spin {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
@keyframes spin {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}