Skip to content

Commit e2e4beb

Browse files
committed
Revert "remove animations for no-javascript compat"
This reverts commit fd790f7.
1 parent fd790f7 commit e2e4beb

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

frontend/src/components/HomepageFeatures/styles.module.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
align-items: center;
44
padding: 3rem 0;
55
width: 100%;
6+
67
background: none;
78
position: relative;
89
overflow: hidden;
@@ -27,13 +28,20 @@
2728
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
2829
transition: transform 0.3s ease, box-shadow 0.3s ease;
2930
background-color: var(--ifm-card-background-color);
31+
animation: fadeInUp 0.5s ease forwards;
32+
opacity: 0;
3033
}
3134

3235
.featureItem:hover {
3336
transform: translateY(-5px);
3437
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
3538
}
3639

40+
.featureItem:nth-child(1) { animation-delay: 0.1s; }
41+
.featureItem:nth-child(2) { animation-delay: 0.2s; }
42+
.featureItem:nth-child(3) { animation-delay: 0.3s; }
43+
.featureItem:nth-child(4) { animation-delay: 0.4s; }
44+
3745
.featureImageContainer {
3846
text-align: center;
3947
margin-bottom: 1.25rem;
@@ -91,6 +99,17 @@
9199
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
92100
}
93101

102+
@keyframes fadeInUp {
103+
from {
104+
opacity: 0;
105+
transform: translateY(20px);
106+
}
107+
to {
108+
opacity: 1;
109+
transform: translateY(0);
110+
}
111+
}
112+
94113
@media (max-width: 768px) {
95114
.featureItem {
96115
flex: 1 1 100%;

frontend/src/pages/index.module.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
margin-bottom: 4rem;
1616
border-radius: 12px;
1717
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
18+
animation: slideDown 0.6s ease-out;
1819
}
1920

2021
.enhancedLink {
@@ -54,19 +55,22 @@
5455
font-weight: 800;
5556
line-height: 1.1;
5657
letter-spacing: -0.5px;
58+
animation: fadeIn 1s ease-out;
5759
}
5860

5961
.heroDescription {
6062
font-size: 1.5rem;
6163
line-height: 1.6;
6264
margin-bottom: 2rem;
6365
color: var(--ifm-color-emphasis-800);
66+
animation: fadeIn 1s ease-out 0.2s both;
6467
}
6568

6669
.heroButtons {
6770
display: flex;
6871
flex-direction: column;
6972
gap: 1.25rem;
73+
animation: fadeIn 1s ease-out 0.4s both;
7074
}
7175

7276
.button {
@@ -94,6 +98,7 @@
9498
grid-template-columns: repeat(6, 1fr);
9599
gap: 1.5rem;
96100
margin-top: 5rem;
101+
animation: fadeIn 1s ease-out 0.6s both;
97102
max-width: 600px;
98103
width: 100%;
99104
}
@@ -114,6 +119,29 @@
114119
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
115120
}
116121

122+
/* Animations */
123+
@keyframes fadeIn {
124+
from {
125+
opacity: 0;
126+
transform: translateY(20px);
127+
}
128+
to {
129+
opacity: 1;
130+
transform: translateY(0);
131+
}
132+
}
133+
134+
@keyframes slideDown {
135+
from {
136+
opacity: 0;
137+
transform: translateY(-20px);
138+
}
139+
to {
140+
opacity: 1;
141+
transform: translateY(0);
142+
}
143+
}
144+
117145
/* Responsive styles */
118146
@media screen and (max-width: 996px) {
119147
.heroBanner {

0 commit comments

Comments
 (0)