JSFiddle - React, Tailwind, and code Playground

by bosworth99

HTML

<div id="block" class="up over radius shadow"></div>

CSS

div#block{
    left:100px; 
    height:50px;
    width:50px;
    position:absolute;
    top:100px;
    cursor:pointer;
}

div.radius{
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

div.shadow{
    -moz-box-shadow: 0px 0px 5px #888;
    -webkit-box-shadow: 0px 0px 5px #888;
    box-shadow: 0px 0px 5px #888;
}

div.up{
    background-color:red;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}

div.over:hover{
    background-color: #fc3;
    -webkit-transform: rotate(360deg) scale(3);
    -moz-transform: rotate(360deg) scale(3);
    -o-transform: rotate(360deg) scale(3);
}