/
parallax.css
96 lines (93 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600);
html, body {
background-color: #1b1b25;
font-family: 'Open Sans', sans-serif;
}
.container {
display: flex;
align-content: center;
align-items: center;
flex-direction: column;
flex-wrap: nowrap;
height: 100%;
justify-content: space-around;
position: relative;
width: 100%;
}
.container section {
width: 100%;
height: 100vh;
flex: 1;
display: flex;
text-align: center;
position: relative;
overflow: hidden;
background-color: #000;
}
.container section:nth-child(1) .image {
/*background-image: url(https://images.unsplash.com/photo-1463412855783-af97e375664b?iq=100&fm=jpg&w=1000);*/
background-image: url(Parallax-Official2.png);
}
.container section:nth-child(2) .image {
background-image: url(music.jpg);
}
.container section:nth-child(3) .image {
background-image: url(Parallax-Official2.png);
}
.container section:nth-child(4) .image {
background-image: url(music.jpg);
}
.container section .image {
background-attachment: fixed;
background-size: cover;
width: 100%;
height: 100%;
position: absolute;
z-index: 500;
opacity: 0.4;
}
.container section .stuff {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
height: 100%;
width: 100%;
max-width: 70%;
justify-content: center;
text-align: center;
z-index: 1000;
/*This is the text color:*/
color: #d7d7d7;
margin: 0 auto;
font-size: 26px;
position: relative;
}
.container section .stuff h2 {
margin: 0px;
}
.container section .stuff:before, .container section .stuff:after {
width: 100%;
height: 1px;
display: block;
/*background-color: #d35400;*/
content: "";
margin: 30px 0;
}
.at-twitter {
position: fixed;
right: 20px;
bottom: 20px;
color: #f1c40f;
z-index: 5000;
}
.at-twitter:visited {
color: #f1c40f;
}
a {
color: inherit;
text-decoration: none;
}
a:hover, a:focus {
color: inherit;
text-decoration: underline;
}