JSFiddle - React, Tailwind, and code Playground

by Bacher

HTML

<div class="container">
    <div class="icon">
        <div class="d"></div>
    </div>
</div>

CSS

.container {
    position: relative;
    background: #5b5;
    width: 100px;
    height: 100px;
    padding: 4px;
}

.icon {
    position: relative;
    -webkit-animation: rotation .7s linear infinite reverse;
    border: 1px solid black;
}

@-webkit-keyframes rotation {
    from { -webkit-transform: rotate(0deg); }
    to   { -webkit-transform: rotate(360deg); }
}

.d {
    background-color: white;
    position: absolute;
    width: 16px;
    height: 16px;    
}