slider handle hover state
HTML
<div class="slider">
<div class="track">
<div class="value">
<div class="handle">
<div class="highlight"></div>
</div>
</div>
</div>
</div>
CSS
html, body {
background: #333;
margin: 0;
}
.slider {
position: absolute;
height: 8px;
width: 400px;
left: 40px;
top: 100px;
}
.track {
border-radius: 10px;
background: rgba(0,0,0,0.8);
height: 100%;
width: 100%;
}
.value {
position: relative;
border-radius: 10px;
background: rgba(255,255,255,0.8);
height: 100%;
width: 70%;
}
.handle {
-webkit-transition: all 0.25s ease-out;
-webkit-transform: scale(0.8);
background: #fff;
border-radius: 20px;
position: absolute;
margin: -10px 0 0 -10px;
right: 0;
height: 20px;
width: 20px;
top: 50%;
}
.highlight {
-webkit-transform: scale(1);
-webkit-transition: all 0.25s ease-out;
cursor: pointer;
border-radius: 10px;
position: absolute;
background: #fff;
opacity: 0;
height: 150%;
width: 150%;
top: -25%;
left: -25%;
}
.handle:hover {
-webkit-transform: scale(2);
}
.handle:hover .highlight {
-webkit-transform: scale(3);
opacity: 0.5;
}