Skip to content

Commit 95bf8ad

Browse files
Update styles.css
1 parent f9990c8 commit 95bf8ad

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

Website/styles.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
/* General fade-in animation */
2+
.fade-in {
3+
opacity: 0;
4+
animation: fadeIn 1s ease-in-out forwards;
5+
}
6+
7+
@keyframes fadeIn {
8+
from {
9+
opacity: 0;
10+
}
11+
to {
12+
opacity: 1;
13+
}
14+
}
15+
/* Slide-In Animations */
16+
@keyframes slide-in-right {
17+
0% {
18+
transform: translateX(100%);
19+
opacity: 0;
20+
}
21+
100% {
22+
transform: translateX(0);
23+
opacity: 1;
24+
}
25+
}
26+
27+
28+
.slide-in-right {
29+
animation: slide-in-right 0.5s ease-out;
30+
}
31+
32+
133
/* Ensure full height of the body and remove margin/padding */
234
html,
335
body {
@@ -12,11 +44,13 @@ body {
1244
display: flex;
1345
flex-direction: column;
1446
color:white;
47+
1548
}
1649

1750
header {
1851
background-color: #121245;
1952
padding: 10px 20px;
53+
animation: fadeIn 1s ease-in-out;
2054
}
2155

2256
.navbar {
@@ -90,6 +124,7 @@ header {
90124
main {
91125
padding: 20px;
92126
flex: 1;
127+
animation: fadeIn 1s ease-in-out;
93128
/* Makes main content take up the remaining space */
94129
}
95130

@@ -104,6 +139,7 @@ main {
104139
h2 {
105140
font-size: 2em;
106141
margin-bottom: 20px;
142+
animation: slideInRight 1s ease-in-out;
107143
}
108144

109145
p {
@@ -122,6 +158,7 @@ button#toggle-stats {
122158
border: none;
123159
cursor: pointer;
124160
transition: background-color 0.3s ease;
161+
animation: slideInRight 1s ease-in-out;
125162
}
126163

127164
button#toggle-stats:hover {
@@ -131,6 +168,7 @@ button#toggle-stats:hover {
131168
#statistics-cards {
132169
display: none;
133170
text-align: center;
171+
animation: slideInRight 0.3s ease-in-out;
134172
}
135173

136174
.stats-grid {
@@ -151,6 +189,7 @@ button#toggle-stats:hover {
151189
color: #fff;
152190
text-shadow: 0.5px 0.5px 1px rgb(0, 10, 150), 0 0 1em rgb(34, 174, 255), 0 0 0.5em rgb(0, 221, 255);
153191
transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
192+
animation: slideInRight 0.3s ease-in-out;
154193
}
155194

156195
.stat-card:hover {
@@ -206,6 +245,7 @@ button#toggle-stats:hover {
206245
gap:20px;
207246
justify-content: center;
208247
align-items: center;
248+
animation: slide-in-right 0.5s ease-in-out;
209249
}
210250

211251
.text-base{
@@ -221,6 +261,7 @@ button#toggle-stats:hover {
221261
border-radius: 15px;
222262
height:340px;
223263
color:white;
264+
animation: slideInRight 0.3s ease-in-out;
224265
}
225266
#language-list {
226267
list-style: none;
@@ -246,6 +287,7 @@ button#toggle-stats:hover {
246287
overflow: hidden;
247288
width:300px;
248289
height:20px;
290+
animation: fadeIn 1s ease-in-out;
249291
}
250292
.progress-bar {
251293
height: 20px;
@@ -258,6 +300,7 @@ button#toggle-stats:hover {
258300
justify-content: center;
259301
align-items: center;
260302
color:white;
303+
animation: fadeIn 1s ease-in-out;
261304
}
262305
#milestone {
263306
text-align: center;
@@ -268,13 +311,15 @@ button#toggle-stats:hover {
268311
border-radius: 15px;
269312
height:340px;
270313
color:white;
314+
animation: slideInRight 1s ease-in-out;
271315
}
272316

273317
.chart-container {
274318
display: flex;
275319
align-items: center;
276320
width:150px;
277321
margin: 50px 20px;
322+
animation: slideInRight 1s ease-in-out;
278323
}
279324

280325
.legend {
@@ -309,6 +354,7 @@ button#toggle-stats:hover {
309354
padding: 20px;
310355
text-align: center;
311356
margin-top: auto;
357+
animation: fadeIn 1s ease-in-out;
312358
}
313359

314360
#footer-link {
@@ -326,6 +372,7 @@ button#toggle-languages {
326372
border: none;
327373
cursor: pointer;
328374
transition: background-color 0.3s ease;
375+
animation: slideInRight 1s ease-in-out;
329376
}
330377

331378
button#toggle-languages:hover {
@@ -337,6 +384,7 @@ button#toggle-languages:hover {
337384
margin: 20px auto;
338385
max-width: 1200px;
339386
padding: 0 20px;
387+
animation: fadeIn 1s ease-in-out;
340388
}
341389

342390
#directories {
@@ -348,6 +396,7 @@ button#toggle-languages:hover {
348396
padding: 0;
349397
margin-top: 50px;
350398
margin-bottom: 100px;
399+
animation: slideInRight 1s ease-in-out;
351400
}
352401

353402
.card {
@@ -360,6 +409,7 @@ button#toggle-languages:hover {
360409
padding: 20px;
361410
box-sizing: border-box;
362411
transition: transform 0.3s ease, box-shadow 0.3s ease;
412+
animation: fadeIn 1s ease-in-out;
363413
}
364414

365415
.card-languages{
@@ -378,6 +428,7 @@ button#toggle-languages:hover {
378428

379429
.card-languages h3{
380430
text-align: center;
431+
animation: fadeIn 1s ease-in-out;
381432
}
382433

383434
.card-languages:hover{
@@ -423,6 +474,7 @@ button#toggle-languages:hover {
423474
padding: 40px;
424475
background-color: #0a0a2e;
425476
text-align: center;
477+
animation: slideInRight 1s ease-in-out;
426478
}
427479

428480
#contributors h2 {
@@ -439,6 +491,7 @@ button#toggle-languages:hover {
439491
justify-content: center;
440492
padding: 20px; /* Padding around the grid */
441493
background: linear-gradient(135deg, #121245, #121245); /* Subtle gradient background */
494+
animation: slideInRight 1s ease-in-out;
442495
}
443496

444497
/* Styling for individual contributor div */
@@ -454,6 +507,7 @@ button#toggle-languages:hover {
454507
background: #0b0b38; /* White background */
455508
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Enhanced shadow for depth */
456509
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
510+
animation: slideInRight 1s ease-in-out;
457511
}
458512

459513
.contributor:hover {
@@ -503,6 +557,7 @@ button#toggle-languages:hover {
503557
font-size: 2.5rem; /* Increase font size */
504558
font-weight: 900; /* Bold font weight */
505559
color: white; /* Dark color for better contrast */
560+
animation: fadeIn 1s ease-in-out;
506561

507562
}
508563

@@ -521,6 +576,7 @@ button#toggle-languages:hover {
521576
cursor: pointer;
522577
font-size: 24px;
523578
z-index: 100;
579+
animation: fadeIn 1s ease-in-out;
524580
}
525581

526582
/* Chatbox */
@@ -538,6 +594,7 @@ button#toggle-languages:hover {
538594
transition: all 0.3s ease;
539595
max-height: 600px; /* Adjust as needed */
540596
overflow: hidden;
597+
animation: fadeIn 1s ease-in-out;
541598
}
542599

543600
.chatbot.active {
@@ -566,6 +623,7 @@ button#toggle-languages:hover {
566623
flex-grow: 1;
567624
overflow-y: auto;
568625
padding: 10px;
626+
animation: fadeIn 1s ease-in-out;
569627
}
570628

571629
.message {
@@ -680,6 +738,7 @@ button#toggle-languages:hover {
680738
cursor: pointer;
681739
transition: opacity 0.3s ease, transform 0.3s ease;
682740
z-index: 1000;
741+
animation: slideInRight 0.5s ease-in-out;
683742
}
684743

685744
#go-to-top:hover {
@@ -700,6 +759,7 @@ button#toggle-languages:hover {
700759
font-size: 2em;
701760
margin-bottom: 20px;
702761
color: #333;
762+
animation: slideInRight 1s ease-in-out;
703763
}
704764

705765
.milestones-grid {
@@ -715,6 +775,7 @@ button#toggle-languages:hover {
715775
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
716776
border-left: 5px solid #054ffd;
717777
transition: transform 0.3s ease;
778+
animation: slideInRight 1s ease-in-out;
718779
}
719780

720781
.milestone-card:hover {
@@ -740,6 +801,7 @@ button#toggle-languages:hover {
740801
overflow: hidden;
741802
margin-bottom: 10px;
742803
height: 8px;
804+
animation: slideInRight 1s ease-in-out;
743805
}
744806

745807
.progress {

0 commit comments

Comments
 (0)