JSFiddle - React, Tailwind, and code Playground

by rwaldin

HTML

<div class="container"><img class="image" src="http://makeameme.org/media/templates/120/grumpy_cat.jpg" alt="" width="120" height="120"/></div>

CSS

.image {
    -webkit-animation: spin 2s linear infinite;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin:-60px 0 0 -60px;
    -webkit-animation: scale 4s linear infinite;
}

@-webkit-keyframes spin { 
    100% { 
        transform: rotate(180deg);
    } 
}

@-webkit-keyframes scale {
    100% {
         transform: scale(2);
    }
}