"Radio button hover effect"
Bootstrap 4.1.1 Snippet by vijay18399

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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="//code.jquery.com/jquery-1.11.1.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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: