Code: Select all
.medallion {
position: relative;
width: 100px;
height: 100px;
transform-style: preserve-3d;
animation: spinY 4s linear infinite;
}
.medallion svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@keyframes spinY {
from { transform: rotateY(0deg); }
to { transform: rotateY(360deg); }
}