-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbutton.css
62 lines (55 loc) · 1016 Bytes
/
button.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
body{
background-color: #0d0d0d;
padding: 0;
margin: 0;
}
.check{
position: absolute;
top: 25%;
left: 50%;
transform: translate(-50%, 50%);
}
input[type="checkbox"]{
-webkit-appearance: none;
width: 300px;
height: 180px;
background-color: #262626;
border-radius: 200px;
border: 5px solid #333333;
outline: none;
transition: .5s;
}
input:checked[type="checkbox"]{
background-color: #FFFF00;
border: 5px solid #CD5C5C;
}
input[type="checkbox"]:before{
content: "";
position: absolute;
top: 8px;
left: 10px;
border-radius: 50%;
width: 170px;
height: 170px;
background-color: #000;
transition: .5s;
}
input:checked[type="checkbox"]:before{
left: 130px;
}
input[type="checkbox"]:after{
content: "";
position: absolute;
top: 75px;
left: 75px;
border-radius: 50%;
width: 20px;
height: 20px;
border: 5px solid white;
transition: .5s;
}
input:checked[type="checkbox"]:after{
left: 215px;
width: 0;
border-radius: 0;
}