Skip to content

Commit c9a4159

Browse files
committed
add banner img y anime
1 parent c539912 commit c9a4159

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/components/Banner/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const Banner = () => {
187187
},
188188
}}
189189
>
190-
<img src="/banner.png" alt="" />
190+
<img className="banner-img" src="/banner.png" alt="" />
191191
</Box>
192192
</Grid>
193193
</Grid>

src/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,19 @@
88
margin: 0;
99
padding: 0;
1010
}
11+
12+
.banner-img {
13+
animation: linear-move 5s infinite linear;
14+
}
15+
16+
@keyframes linear-move {
17+
0% {
18+
transform: translateY(0);
19+
}
20+
50% {
21+
transform: translateY(-20px);
22+
}
23+
100% {
24+
transform: translateY(0);
25+
}
26+
}

0 commit comments

Comments
 (0)