Progress Bar
<!DOCTYPE html>
<html>
<head>
<title>Skills HTML</title>
</head>
<body>
<div class="container">
<h2>CSS Skills Bar UI Design</h2>
<div class="skills">
<span class="Name">HTML</span>
<div class="percent">
<div class="progress" style="width: 95%"></div>
</div>
<span class="Value">95%</span>
</div>
<div class="skills">
<span class="Name">CSS</span>
<div class="percent">
<div class="progress" style="width: 90%"></div>
</div>
<span class="Value">90%</span>
</div>
<div class="skills">
<span class="Name">JavaScript</span>
<div class="percent">
<div class="progress" style="width: 72%"></div>
</div>
<span class="Value">72%</span>
</div>
<div class="skills">
<span class="Name">PhotoShop</span>
<div class="percent">
<div class="progress" style="width: 85%"></div>
</div>
<span class="Value">85%</span>
</div>
</div>
</body>
</html>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #2e2e2e;
}
.container{
position: relative;
width: 500px;
}
.container h2{
color: #fff;
}
.container .skills{
position: relative;
display: flex;
margin: 20px 0px;
padding: 24px 10px 18px;
background: linear-gradient(#616161 0%, #333 10% , #222);
border-radius: 8px;
overflow:hidden;
border: 2px solid #000;
transition: 0.5s;
}
.container:hover .skills{opacity: 0.5;}
.container .skills:hover{opacity: 1; transform: scale(1.1);}
.container .skills:before{
content: '';
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 50%;
background: rgba(255, 255, 255, 0.1);
z-index: 10;
}
.container .skills .Name{
position: relative;
width: 110px;
text-align: right;
color: #fff;
margin-top: -2px;
text-transform: uppercase;
}
.container .skills .Value{
position: relative;
width: 40px;
text-align: left;
color: #fff;
margin-top: -2px;
text-transform: uppercase;
}
.container .skills .percent{
position: relative;
width: calc(100% - 150px);
height: 20px;
margin: 0 10px;
border-radius: 10px;
background: #151515;
box-shadow: inset 0px 0px 10px #000;
overflow:hidden;
}
.container .skills .percent .progress{
position: absolute;
top: 0px;
left: 0px;
width: 70%;
height: 100%;
border-radius: 10px;
background-color: #fff;
box-shadow: inset 0 0 2px #000;
animation: animate 4s ease-in-out forwards;
}
@keyframes animate
{
from{
width: 0px;
}
}
.container .skills:nth-child(2) .percent .progress{
background: linear-gradient(45deg, #1fe6ff, #673AB7);
}
.container .skills:nth-child(3) .percent .progress{
background: linear-gradient(45deg, #3bc0ff, #3ff000);
}
.container .skills:nth-child(4) .percent .progress{
background: linear-gradient(45deg, #ffee54, #ff00ca);
}
.container .skills:nth-child(5) .percent .progress{
background: linear-gradient(45deg, #22ffde, #2196F3);
}
</style>
Comments
Post a Comment