"How to put animation on thumb of input type range on hover?"
Bootstrap 4.1.1 Snippet by muhittinbudak

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div> <input type="range" min="0" max="100" value="40"/> </div </div> </div>
/* Special styling for WebKit/Blink */ input[type=range] { -webkit-appearance: none; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: 10; height: 15px; width: 15px; border-radius: 50%; background: #3399cc; cursor: pointer; margin-top: -5px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */ transition : all .3s; border:0; } input[type=range]:hover::-webkit-slider-thumb{ box-shadow: 0px 0px 0px 4px rgba(51, 153, 204, 0.49); } input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: #3071a9; }

Related: See More


Questions / Comments: