One Page Website HTML Css Project Style - Css at Master ShaifArfan One Page Website HTML Css Project GitHub
One Page Website HTML Css Project Style - Css at Master ShaifArfan One Page Website HTML Css Project GitHub
master
one-page-website-html-css-project / style.css
1 contributor
209 #hero::after {
210 content: '';
211 position: absolute;
212 left: 0;
213 top: 0;
214 height: 100%;
215 width: 100%;
216 background-color: black;
217 opacity: 0.7;
218 z-index: -1;
219 }
220 #hero .hero {
221 max-width: 1200px;
222 margin: 0 auto;
223 padding: 0 50px;
224 justify-content: flex-start;
225 }
226 #hero h1 {
227 display: block;
228 width: fit-content;
229 font-size: 4rem;
230 position: relative;
231 color: transparent;
232 animation: text_reveal 0.5s ease forwards;
233 animation-delay: 1s;
234 }
235 #hero h1:nth-child(1) {
236 animation-delay: 1s;
237 }
238 #hero h1:nth-child(2) {
239 animation-delay: 2s;
240 }
241 #hero h1:nth-child(3) {
242 animation: text_reveal_name 0.5s ease forwards;
243 animation-delay: 3s;
244 }
245 #hero h1 span {
246 position: absolute;
247 top: 0;
248 left: 0;
249 height: 100%;
:
250 width: 0;
251 background-color: crimson;
252 animation: text_reveal_box 1s ease;
253 animation-delay: 0.5s;
254 }
255 #hero h1:nth-child(1) span {
256 animation-delay: 0.5s;
257 }
258 #hero h1:nth-child(2) span {
259 animation-delay: 1.5s;
260 }
261 #hero h1:nth-child(3) span {
262 animation-delay: 2.5s;
263 }
264
265 /* End Hero Section */
266
267 /* Services Section */
268 #services .services {
269 flex-direction: column;
270 text-align: center;
271 max-width: 1500px;
272 margin: 0 auto;
273 padding: 100px 0;
274 }
275 #services .service-top {
276 max-width: 500px;
277 margin: 0 auto;
278 }
279 #services .service-bottom {
280 display: flex;
281 align-items: center;
282 justify-content: center;
283 flex-wrap: wrap;
284 margin-top: 50px;
285 }
286 #services .service-item {
287 flex-basis: 80%;
288 display: flex;
289 align-items: flex-start;
290 justify-content: center;
291 flex-direction: column;
292 padding: 30px;
293 border-radius: 10px;
294 background-image: url(./img/img-1.png);
:
295 background-size: cover;
296 margin: 10px 5%;
297 position: relative;
298 z-index: 1;
299 overflow: hidden;
300 }
301 #services .service-item::after {
302 content: '';
303 position: absolute;
304 left: 0;
305 top: 0;
306 height: 100%;
307 width: 100%;
308 background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
309 opacity: 0.9;
310 z-index: -1;
311 }
312 #services .service-bottom .icon {
313 height: 80px;
314 width: 80px;
315 margin-bottom: 20px;
316 }
317 #services .service-item h2 {
318 font-size: 2rem;
319 color: white;
320 margin-bottom: 10px;
321 text-transform: uppercase;
322 }
323 #services .service-item p {
324 color: white;
325 text-align: left;
326 }
327 /* End Services Section */
328
329 /* Projects section */
330 #projects .projects {
331 flex-direction: column;
332 max-width: 1200px;
333 margin: 0 auto;
334 padding: 100px 0;
335 }
336 #projects .projects-header h1 {
337 margin-bottom: 50px;
338 }
:
339 #projects .all-projects {
340 display: flex;
341 align-items: center;
342 justify-content: center;
343 flex-direction: column;
344 }