-
Notifications
You must be signed in to change notification settings - Fork 0
/
Parallax.css
45 lines (45 loc) · 1.05 KB
/
Parallax.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
* {
padding: 0;
margin: 0;
border: 0;
}
div{
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
h2{
position: absolute;
font-size: 10em;
color: white;
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
div:nth-child(1){
background-image: url('./assets/images/image1.jpg');
background-size: cover;
background-repeat: no-repeat;
height: 75em;
width: 100%;
}
div:nth-child(2){
background-image: url('./assets/images/image2.jpg');
background-size: cover;
background-repeat: no-repeat;
height: 75em;
width: 100%;
}
div:nth-child(3){
background-image: url('./assets/images/image3.jpg');
background-size: cover;
background-repeat: no-repeat;
height: 75em;
width: 100%;
}
div:nth-child(4){
background-image: url('./assets/images/image4.jpg');
background-size: cover;
background-repeat: no-repeat;
height: 75em;
width: 100%;
}