Skip to content

Commit bb52073

Browse files
committed
Change the background color gradually instead of instantly
1 parent caa6a29 commit bb52073

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v2/AnimatedToggleButton/AnimatedToggleButton.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.onyx-toggle-button.onyx-animated-toggle-button {
22
/* We need this so that the knob is positioned relatively to the toggle button */
33
position: relative;
4+
-webkit-transition: background-color 0.5s linear;
5+
-moz-transition: background-color 0.5s linear;
6+
-o-transition: background-color 0.5s linear;
7+
-ms-transition: background-color 0.5s linear;
48
}
59

610
.onyx-toggle-button.onyx-animated-toggle-button .onyx-toggle-button-knob {

0 commit comments

Comments
 (0)