-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpokemon_trio.css
58 lines (53 loc) · 1.23 KB
/
pokemon_trio.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
body {
font-family: Arial, sans-serif;
background: linear-gradient(120deg, #ffcc00, #ff6600);
animation: background-shift 10s infinite;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
@keyframes background-shift {
0% {
background: linear-gradient(120deg, #ffcc00, #ff6600);
}
20% {
background: linear-gradient(120deg, #ff6600, #ff33cc);
}
40% {
background: linear-gradient(120deg, #ff33cc, #6600ff);
}
60% {
background: linear-gradient(120deg, #6600ff, #33ccff);
}
80% {
background: linear-gradient(120deg, #33ccff, #00ff99);
}
100% {
background: linear-gradient(120deg, #00ff99, #ffcc00);
}
}
.sprites {
position: relative;
text-align: center;
display: flex;
gap: 20px;
}
img {
width: 150px;
height: auto;
animation: float 2s infinite;
transition: transform 0.3s ease-in-out;
}
img:hover {
transform: scale(1.2);
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}