JSFiddle - React, Tailwind, and code Playground
by Константин Дралюк
HTML
<div class="rounded">
<div>
</div>
</div>
CSS
.rounded {
overflow: hidden;
width: 190px;
height: 190px;
border-radius: 50%;
z-index: 10;
border: 5px solid rgba(0, 0, 0, 0.2);
position:relative;
margin:1px;
}
.rounded div {
background: url(http://cdn.nimbusthemes.com/blog/free-stock-photography/prairie/free-stock-photos-prairie_0002.jpg) center center;
width: 200px;
height: 200px;
display: table-cell;
line-height:200px;
font-size: 56px;
z-index: 0;
border: 1px solid transparent;
transition: 0.5s;
}
.rounded div:hover {
transform: scale(1.4) rotateX(-10deg) rotateY(10deg);
z-index: 0;
border: 1px solid transparent;
transition: 0.5s;
}
.rounded div:hover::after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
content: '';
background-color: rgba(219, 110, 112, 0.4);
width: 200px;
height: 200px;
cursor:pointer;
}
span {
position:relative;
font-size: 56px;
z-index: 0;
border: 1px solid transparent;
transition: 0.5s;
top:-145px;
left:85px;
z-index:100;
}