JSFiddle - React, Tailwind, and code Playground
by swoogie
HTML
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Heart_coraz%C3%B3n.svg/1024px-Heart_coraz%C3%B3n.svg.png" id="spinner">
<div class="spinner-circle"></div>
CSS
@-moz-keyframes spin {
0% {
width: 200px;
height: 200px;
}
50% {
width: 100px;
height: 100px;
}
100% {
width: 200px;
height: 200px;
}
}
@-webkit-keyframes spin {
0% {
width: 200px;
height: 200px;
}
50% {
width: 100px;
height: 100px;
}
100% {
width: 200px;
height: 200px;
}
}
@keyframes spin {
0% {
width: 200px;
height: 200px;
}
50% {
width: 100px;
height: 100px;
}
100% {
width: 200px;
height: 200px;
}
}
body {
background-color: #fff;
}
#spinner {
position: fixed;
border-radius: 5px;
left: 40%;
top: 30%;
width: 200px;
height: 200px;
text-align: center;
vertical-align: middle;
z-index: 1000;
padding: 40px;
-webkit-animation:spin 550ms linear infinite;
-moz-animation:spin 550ms linear infinite;
animation:spin 550ms linear infinite;
}