11
11
transform : skewY (-2deg ) translateY (-55px );
12
12
z-index :-1 ;
13
13
}
14
-
15
- // &:after {
16
- // background-image: linear-gradient(0deg, var(--color-neutrals-100) 70%, rgba(255,255,255, 0));
17
- // content: '';
18
- // position: absolute;
19
- // left: 0;
20
- // right: 0;
21
- // transform: skewY(-2deg) translateY(-250px);
22
- // display: block;
23
- // height: 200px;
24
- // }
25
14
}
26
15
27
16
.title {
31
20
font-family : var (--secondary-font-family );
32
21
text-align : center ;
33
22
line-height : 25px ;
34
- margin-bottom : 6 px ;
23
+ margin-bottom : 4 px ;
35
24
font-weight : 400 ;
36
25
}
37
26
38
27
.description {
39
28
position : relative ;
40
29
z-index :100 ;
41
30
margin : 0 0 30px 0 ;
31
+ padding : 0 28px ;
42
32
font-size : 16px ;
43
- line-height : 19 px ;
33
+ line-height : 24 px ;
44
34
color : var (--color-neutrals-600 );
45
35
text-align : center ;
46
36
81
71
height : 105px ;
82
72
flex-shrink : 0 ;
83
73
margin-right : 20px ;
84
- animation-duration : 50 s ;
74
+ animation-duration : 60 s ;
85
75
animation-name : project- slide;
86
76
animation-iteration-count : infinite ;
87
77
animation-direction : alternate ;
88
78
animation-timing-function : linear ;
89
79
position : relative ;
90
80
z-index : 100 ;
91
81
box-shadow : 0px 0.913195px 0.802504px rgba (4 , 22 , 22 , 0.00562291 ), 0px 2.19453px 1.92853px rgba (4 , 22 , 22 , 0.00807786 ), 0px 4.13211px 3.63125px rgba (4 , 22 , 22 , 0.01 ), 0px 7.37098px 6.47753px rgba (4 , 22 , 22 , 0.0119221 ), 0px 13.7866px 12.1155px rgba (4 , 22 , 22 , 0.0143771 ), 0px 33px 29px rgba (4 , 22 , 22 , 0.02 );
82
+ pointer-events : none ;
92
83
93
84
& :last-child {
94
85
margin-right : 0 ;
98
89
filter : blur (4px );
99
90
animation-play-state : paused ;
100
91
opacity : .6 ;
101
- }
92
+ }
102
93
}
103
94
104
95
@keyframes project-slide {
119
110
transition : transform .2s ease-out , opacity .2s ;
120
111
box-shadow : 0px 1.85406px 2.60122px rgba (5 , 35 , 39 , 0.0562291 ), 0px 4.45557px 6.2511px rgba (5 , 35 , 39 , 0.0807786 ), 0px 8.38944px 11.7703px rgba (5 , 35 , 39 , 0.1 ), 0px 14.9653px 20.9961px rgba (5 , 35 , 39 , 0.119221 ), 0px 27.991px 39.271px rgba (5 , 35 , 39 , 0.143771 );
121
112
opacity : 0 ;
122
-
113
+ pointer-events : none ;
114
+
123
115
.projects-hovered & {
124
116
opacity : 1 ;
117
+ pointer-events : inherit ;
125
118
transform : translate (-50% , 35px );
126
119
transition : transform .08s ease-out ;
127
120
133
126
transform : translate (-50% , 36px );
134
127
}
135
128
}
129
+ }
130
+
131
+ // ==============================================================
132
+ // Responsive styles
133
+ // ==============================================================
134
+
135
+ @media screen and (max-width : 900px ) {
136
+ .projects-container :before ,
137
+ .projects-container :after {
138
+ display : none ;
139
+ }
140
+ }
141
+
142
+ @media screen and (max-width : 600px ) {
143
+ .project h4 {
144
+ max-width : 19ch ;
145
+ white-space : nowrap ;
146
+ }
147
+ }
148
+
149
+ @media screen and (max-width : 480px ) {
150
+ .project {
151
+ animation-duration : 30s ;
152
+ }
136
153
}
0 commit comments