JSFiddle - React, Tailwind, and code Playground
HTML
<div class="square">
<img src="http://img.klavogonki.ru/avatars/111001_big.gif?updated=1454884576884" alt="un4">
</div>
<p>Я УНЧА ВЕРТЕЛ, КАК ХОТЕЛ</p>
CSS
/* reset all the shit */
* {
margin: 0;
padding: 0;
border: 0;
font-size: 0;
}
/* un4.gif */
img {
display: block;
width: 250px;
height: 250px;
}
/* square properties */
.square {
width: 250px;
height: 250px;
margin-top: 100px;
margin-bottom: 100px;
margin-left: auto;
margin-right: auto;
border: 3px solid #778899;
background-color: #fcfcff;
animation-name: box;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
/* animation */
@keyframes box {
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
/* slogan */
p {
display: block;
width: 300px;
text-align: center;
margin: 0 auto 0 auto;
font-size: 30px;
font-family: 'Arial Black';
color: rgba(0,0,0,0.87);
}