Skip to content

Commit 8c140aa

Browse files
committed
fix: animation flash
1 parent a5cdb76 commit 8c140aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/components/Settings/Toggle.client.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ const id = useId()
106106
/* Track transition */
107107
.toggle {
108108
transition:
109-
background-color 100ms ease-in-out,
109+
background-color 200ms ease-in-out,
110110
border-color 100ms ease-in-out;
111111
}
112112
113113
.toggle::before {
114114
transition:
115-
background-color 50ms ease-in-out,
115+
background-color 200ms ease-in-out,
116116
translate 200ms ease-in-out;
117117
}
118118

app/components/Settings/Toggle.server.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ const props = withDefaults(
6161
/* Track transition */
6262
.toggle {
6363
transition:
64-
background-color 100ms ease-in-out,
64+
background-color 200ms ease-in-out,
6565
border-color 100ms ease-in-out;
6666
}
6767
6868
.toggle::before {
6969
transition:
70-
background-color 50ms ease-in-out,
70+
background-color 200ms ease-in-out,
7171
translate 200ms ease-in-out;
7272
}
7373

0 commit comments

Comments
 (0)