Skip to content

Commit bb5e227

Browse files
committed
Remove transition for cards' background color
It makes theme changes weird (cards' backgrounds is the only thing that is animated) and it makes outgoing cards' backgrounds opaque while they are moving.
1 parent 2b79a80 commit bb5e227

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ResponsiveSetCard.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const useStyles = makeStyles((theme) => ({
1717
justifyContent: "center",
1818
flexShrink: 0,
1919
backgroundColor: theme.setCard.background,
20-
transition:
21-
"box-shadow 0.15s, width 0.5s, height 0.5s, background-color 0.3s",
20+
transition: "box-shadow 0.15s, width 0.5s, height 0.5s",
2221
},
2322
clickable: {
2423
cursor: "pointer",

0 commit comments

Comments
 (0)