Skip to content

Commit 94e795f

Browse files
jennydamanindefinities
authored andcommitted
Use transition instead of animation
1 parent f3419c8 commit 94e795f

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/components/hacks-button.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default {
3535
margin: 0.5em;
3636
height: fit-content;
3737
padding: 15px;
38+
transition: background-color 1s;
3839
3940
&__row {
4041
display: flex;
@@ -54,16 +55,6 @@ export default {
5455
5556
&:hover,
5657
&:focus {
57-
@keyframes colorin {
58-
from {
59-
background-color: $hacks-nav-inactive-color;
60-
}
61-
to {
62-
background-color: $hacks-nav-active-color;
63-
}
64-
}
65-
66-
@include animation-fast(colorin);
6758
background-color: $hacks-nav-active-color;
6859
}
6960
}

src/components/hacks-square.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,10 @@ export default {
2828
object-fit: cover;
2929
border-radius: 10%;
3030
filter: grayscale(100%);
31+
transition: filter 1s;
3132
3233
&:hover,
3334
&:focus {
34-
@keyframes movein {
35-
from {
36-
filter: grayscale(100%);
37-
}
38-
to {
39-
filter: grayscale(0%);
40-
}
41-
}
42-
43-
@include animation-fast(movein);
4435
filter: grayscale(0%);
4536
}
4637
}

0 commit comments

Comments
 (0)