"Radio button hover effect"
Bootstrap 4.1.1 Snippet by prakash27dec

<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="box"> <p>Do you like me?</p> <label> <input type="radio" name="like" checked=""> <span class="yes">Yes</span> </label> <label> <input type="radio" name="like"> <span class="no">No</span> </label> </div>
body { margin:0; padding:0; background:#262626; font-family:sans-serif; } .box { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:1000px; padding:20px; background:#000; color:#fff; text-align:center; box-shadow:0 10px 30px rgba(0,0,0,1); border-radius:5px; overflow:hidden; } .box:before, .box:after { background:blue; color:blue; border-color:blue; box-shadow: inset 0 0 10px blue; content:''; width: 100%; height: 100%; position:absolute; top:0; left:0; background:blue; z-index:-1; filter: blur(250px); } .box:before { content:''; position:absolute; top:0; left:-50%; width:100%; height:100%; background:rgba(255,255,255,0.05); transform:skewX(-3deg); pointer-events:none; } .box p { margin:0; padding:0; color:#fff; font-size:50px; } .box label { position:relative; cursor:pointer; } .box label input { display:none; } .box label span { position:relative; display:inline-block; margin: 20px 10px; font-size:30px; padding:20px; width: 150px; background: #000; border: 1px solid #444; color: #444; border-radius: 4px; } .box label input:checked ~ span { color:#fff; border: 1px solid #008eff; } .box label input:checked ~ span:before { content:''; width: 100%; height: 100%; position:absolute; top:0; left:0; background:#008eff; z-index:-1; filter: blur(10px); } .box label input:checked ~ span:after { content:''; width: 100%; height: 100%; position:absolute; top:0; left:0; background:#008eff; z-index:-1; filter: blur(15px); } .box label input:checked ~ span.yes { color:#62ff00; border-color:#62ff00; box-shadow: inset 0 0 10px #62ff00; } .box label input:checked ~ span.yes:before, .box label input:checked ~ span.yes:after { background:#62ff00; } .box label input:checked ~ span.no { color:#ff0000; border-color:#ff0000; box-shadow: inset 0 0 10px #ff0000; } .box label input:checked ~ span.no:before, .box label input:checked ~ span.no:after { background:#ff0000; }

Related: See More


Questions / Comments: