Skip to content

Commit 59563ed

Browse files
committed
add card fade in animation
1 parent 285eb9e commit 59563ed

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

components/Cards/VehicleCard.module.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
@import 'vars.scss';
22

3+
@keyframes slideTopFadeIn {
4+
0% {
5+
transform: translateY(-100%);
6+
opacity: 0;
7+
}
8+
75% {
9+
transform: translateY(20%);
10+
}
11+
100% {
12+
transform: translateY(0);
13+
opacity: 1;
14+
}
15+
}
16+
17+
18+
319
.container {
420
width: calc(50vw - 16px);
521
height: 330px;
@@ -14,6 +30,8 @@
1430
min-height: 340px;
1531
height: auto;
1632
margin-left: spacing(0.5);
33+
animation-fill-mode: forwards;
34+
animation: slideTopFadeIn 0.3s ease-in;
1735
}
1836
.likeButton {
1937
position: absolute;

0 commit comments

Comments
 (0)