JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="card">
<div class="box">
<div class="percent">
<svg>
<circle cx="70" cy="70" r="70"></circle>
<circle cx="70" cy="70" r="70"></circle>
</svg>
<div class="number">
<h2>90<span>%</span></h2>
</div>
</div>
<h2 class="text">Html</h2>
</div>
</div>
</div>
CSS
*{
margin: 0;
padding: 0;
}
body{
font-family: roboto;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
}
.container{
position: relative;
width: 900px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-pack: distribute;
justify-content: space-around;
}
.container .card{
position: relative;
width: 250px;
background: -webkit-gradient(linear,left bottom, left top,from(#1b1b1b),color-stop(#222),to(#1b1b1b));
background: -o-linear-gradient(bottom,#1b1b1b,#222,#1b1b1b);
background: linear-gradient(0deg,#1b1b1b,#222,#1b1b1b);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
height: 300px;
border-radius: 4px;
text-align: center;
overflow: hidden;
-webkit-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.container .card::before{
content: "";
position: absolute;
top: 0;
left: -50%;
width: 100%;
height: 100%;
background: rgba(255,255,255,0.03);
pointer-events: none;
z-index: 1;
}
.container .card:hover{
-webkit-transform: translateY(-10px);
-ms-transform: translateY(-10px);
transform: translateY(-10px);
-webkit-box-shadow: 0 15px 35px rgba(0,0,0,0.5);
box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.percent{
position: relative;
width: 150px;
height: 150px;
border-radius: 50%;
-webkit-box-shadow: inset 0 0 50px #000;
box-shadow: inset 0 0 50px #000;
background: #222;
z-index: 1000;
}
.percent .number{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
...