Commit 104d489 1 parent ad37b7b commit 104d489 Copy full SHA for 104d489
File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11
11
< form >
12
12
< label class ="switch ">
13
13
< input id ="ghonoff " name ="ghonoff " type ="checkbox ">
14
- < span class ="slider round "> </ span >
14
+ < span id =" slider " class ="slider notransition round "> </ span >
15
15
</ label >
16
16
< button id ="settings "> Settings</ button >
17
17
</ form >
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ function toggleOnOff(e) {
30
30
browser . browserAction . setIcon ( { path : icon } ) ;
31
31
} ) ;
32
32
} ) ;
33
+ document . querySelector ( "#slider" ) . classList . remove ( "notransition" ) ;
33
34
}
34
35
35
36
function onOpened ( ) {
Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ button {
29
29
height : 0 ;
30
30
}
31
31
32
+ .notransition : before {
33
+ -webkit-transition : none !important ;
34
+ -moz-transition : none !important ;
35
+ -o-transition : none !important ;
36
+ -ms-transition : none !important ;
37
+ transition : none !important ;
38
+ }
39
+
32
40
.slider {
33
41
position : absolute;
34
42
cursor : pointer;
You can’t perform that action at this time.
0 commit comments