<div class="time">
<div class="bar"></div>
</div>
body {
width: 100vw;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #f1f8fd;
}
.time {
position: relative;
width: 80vw;
height: 16px;
border-radius: 8px;
box-shadow: 9px 9px 9px rgba(0,0,0,0.05), -9px -9px 9px rgba(255,255,255,0.5), inset 4px 4px 4px rgba(0,0,0,0.05), inset -4px -4px 4px rgba(255,255,255,0.5);
}
.bar {
width: 80%;
height: 12px;
position: absolute;
left: 2px;
top: 2px;
border-radius: 6px;
background-color: #fed0b3;
box-shadow: 2px 2px 2px rgba(0,0,0,0.05), -2px -2px 2px rgba(255,255,255,0.5), inset 3px 3px 3px rgba(255,255,255,0.5), inset -3px -3px 3px rgba(0,0,0,0.05);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.