Skip to content

Commit 3875e93

Browse files
committed
fix(style): fix transition for background ui
1 parent 2a4b09d commit 3875e93

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/styles/mixin.scss

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
@mixin hover-background($from: var(--bg-blur-black), $to: var(--bg-blur-black-hover), $blur: var(--bg-blur)) {
2-
background: $from;
1+
@mixin hover-background(
2+
$from: var(--bg-blur-black),
3+
$to: var(--bg-blur-black-hover),
4+
$blur: var(--bg-blur),
5+
$transition: var(--n-bezier)
6+
) {
7+
background-color: $from;
38
backdrop-filter: blur($blur);
4-
transition: background 0.5s;
5-
will-change: background;
9+
transition:
10+
color 0.3s $transition,
11+
background 0.3s $transition,
12+
backdrop-filter 0.3s $transition,
13+
box-shadow 0.3s $transition,
14+
border-color 0.3s $transition;
15+
will-change: color, background, backdrop-filter, box-shadow,
16+
border-color;
617

718
&:hover {
8-
background: $to
19+
background-color: $to;
920
}
10-
}
21+
}

0 commit comments

Comments
 (0)