File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
components/HomepageFeatures Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 33 align-items : center;
44 padding : 3rem 0 ;
55 width : 100% ;
6+
67 background : none;
78 position : relative;
89 overflow : hidden;
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 ;
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% ;
Original file line number Diff line number Diff line change 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 {
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 {
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}
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 {
You can’t perform that action at this time.
0 commit comments