-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBCCOTOggleClick.css
64 lines (54 loc) · 995 Bytes
/
BCCOTOggleClick.css
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
body{
transition: background-color 0.4s ease-in-out;
}
.wrapper{
position: absolute;
top:30%;
left:50%;
transform: translate(-50%, 50%);
}
body.green{
background: #2196f3;
}
.custom-toggle{
display: inline-block;
user-select: none;
position: relative;
}
.custom-toggle input
{
display: none;
}
.custom-toggle label{
position: relative;
display: block;
width:96px;
height:44px;
border-radius:22px;
background-color: #efefef;
cursor: pointer;
}
.custom-toggle label:after{
position: relative;
display: block;
content: "";
width:38px;
height: 38px;
top:3px;
left:3px;
border-radius: 19px;
pointer-events: none;
background-color: #fff;
transition:all 0.4s ease-in-out;
}
.custom-toggle label:active:after{
width:50px;
}
.custom-toggle input:checked + label:active:after{
left: 43px;
}
.custom-toggle input:checked + label:after{
left:55px;
background-color: #2196f3;
}
/*Thanks for watching!*/