Spaces:
Running
Running
Improved UI and added animations
Browse files- Added gradient background to header
- Improved search bar and type filter styles
- Added loading animation
- Added fade-in animation to modal
- Added scaling animation to Pokemon Cards
- index.html +0 -0
- style.css +96 -28
index.html
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
style.css
CHANGED
@@ -1,28 +1,96 @@
|
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
body {
|
3 |
+
font-family: 'Press Start 2P', cursive;
|
4 |
+
background-color: #f0f0f0;
|
5 |
+
color: #333;
|
6 |
+
}
|
7 |
+
|
8 |
+
/* Search Bar Styles */
|
9 |
+
#search {
|
10 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
11 |
+
transition: all 0.3s ease;
|
12 |
+
}
|
13 |
+
|
14 |
+
#search:focus {
|
15 |
+
border-color: #F472B6;
|
16 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.15);
|
17 |
+
}
|
18 |
+
|
19 |
+
/* Type Filter Styles */
|
20 |
+
.type-filter {
|
21 |
+
transition: all 0.3s ease;
|
22 |
+
border: 2px solid transparent;
|
23 |
+
}
|
24 |
+
|
25 |
+
.type-filter:hover {
|
26 |
+
transform: scale(1.05);
|
27 |
+
border-color: rgba(0,0,0,0.1);
|
28 |
+
}
|
29 |
+
|
30 |
+
/* General Transitions and Hover Effects */
|
31 |
+
.pokemon-card {
|
32 |
+
transition: all 0.3s ease;
|
33 |
+
transform-style: preserve-3d;
|
34 |
+
}
|
35 |
+
|
36 |
+
.pokemon-card:hover {
|
37 |
+
transform: translateY(-5px) rotateY(5deg);
|
38 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
39 |
+
}
|
40 |
+
|
41 |
+
.pokemon-card-inner {
|
42 |
+
transition: transform 0.6s;
|
43 |
+
transform-style: preserve-3d;
|
44 |
+
}
|
45 |
+
|
46 |
+
.pokemon-card:hover .pokemon-card-inner {
|
47 |
+
transform: rotateY(10deg);
|
48 |
+
}
|
49 |
+
|
50 |
+
@keyframes float {
|
51 |
+
0%, 100% { transform: translateY(0); }
|
52 |
+
50% { transform: translateY(-10px); }
|
53 |
+
}
|
54 |
+
|
55 |
+
.floating {
|
56 |
+
animation: float 3s ease-in-out infinite;
|
57 |
+
}
|
58 |
+
|
59 |
+
.pokemon-sprite {
|
60 |
+
transition: transform 0.3s;
|
61 |
+
}
|
62 |
+
|
63 |
+
.pokemon-sprite:hover {
|
64 |
+
transform: scale(1.1);
|
65 |
+
}
|
66 |
+
|
67 |
+
/* Type Color Definitions */
|
68 |
+
.type-bug { background-color: #A8B820; }
|
69 |
+
.type-dark { background-color: #705848; }
|
70 |
+
.type-dragon { background-color: #7038F8; }
|
71 |
+
.type-electric { background-color: #F8D030; }
|
72 |
+
.type-fairy { background-color: #EE99AC; }
|
73 |
+
.type-fighting { background-color: #C03028; }
|
74 |
+
.type-fire { background-color: #F08030; }
|
75 |
+
.type-flying { background-color: #A890F0; }
|
76 |
+
.type-ghost { background-color: #705898; }
|
77 |
+
.type-grass { background-color: #78C850; }
|
78 |
+
.type-ground { background-color: #E0C068; }
|
79 |
+
.type-ice { background-color: #98D8D8; }
|
80 |
+
.type-normal { background-color: #A8A878; }
|
81 |
+
.type-poison { background-color: #A040A0; }
|
82 |
+
.type-psychic { background-color: #F85888; }
|
83 |
+
.type-rock { background-color: #B8A038; }
|
84 |
+
.type-steel { background-color: #B8B8D0; }
|
85 |
+
.type-water { background-color: #6890F0; }
|
86 |
+
|
87 |
+
|
88 |
+
/* Modal Fade-in Animation */
|
89 |
+
#pokemon-modal {
|
90 |
+
animation: fadeIn 0.3s ease-in-out;
|
91 |
+
}
|
92 |
+
|
93 |
+
@keyframes fadeIn {
|
94 |
+
0% { opacity: 0; }
|
95 |
+
100% { opacity: 1; }
|
96 |
+
}
|