Repository navigation
Expand file tree
/
Copy pathtoggleSlider.css
More file actions
77 lines (67 loc) · 1.54 KB
/
Copy pathtoggleSlider.css
File metadata and controls
77 lines (67 loc) · 1.54 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
.myToggle {
visibility: visible;
width: 300px;
height: 30px;
background-color: transparent;
position:absolute;
/*border-radius: 5px;*/
}
.sliderLine {
width: 300px;
height: 30px;
background-color: gray;
position:absolute;
border-radius: 30px;
box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
}
/* .myToggle:hover {
background-color: rgb(0,0,0);
} */
.btn {
border-radius: 30px;
position:relative;
float:left;
width: 30px;
height: 30px;
background-color: transparent;
opacity : 1;
}
.btnSmall {
border-radius: 10px;
position:absolute;
left : 10px;
top : 10px;
width: 10px;
height: 10px;
background-color: white;
pointer-events:none;
transition: 0.5s ease-in-out;
}
.btn:hover > .btnSmall {
/* animation-name: bounce;
animation-duration: 3s; */
/* background-color: white !important; */
/* animation-timing-function: ease-out; */
transform: scale(3);
}
.btnToggle {
border-radius: 30px;
position:relative;
/* float:left; */
width: 30px;
height: 30px;
background-color: blue;
transition: 0.5s ease;
}
@keyframes bounce {
0%, 100%{
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
30% {
-webkit-transform: scale(2);
-ms-transform: scale(2);
transform: scale(2);
}
}