-
Notifications
You must be signed in to change notification settings - Fork 4
/
parallax.css
116 lines (105 loc) · 2.25 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
body {
margin: 0;
}
article h2, article h1 {
font-size: 3.6em;
line-height: 1em;
margin: 25px 0;
}
.content {
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
border-top: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
color: #333;
height: 1050px;
margin: 0 auto;
padding: 0;
position: relative;
width: 100%;
}
#first {
background: url(../img/bg-parallaxsample01.jpg) 50% 0 no-repeat fixed;
}
#second {
background: url(../img/bg-parallaxsample02.jpg) 50% 0 no-repeat fixed black;
}
#third {
background: url(../img/bg-parallaxsample03.jpg) 50% 0 no-repeat fixed black;
}
#theend {
background: url(../img/bg-parallaxsample04.jpg) 50% 0 no-repeat fixed #e6cda4;
}
/* section first */
.logo {
color: rgba(255, 255, 255, 0.9);
font-size: 4em;
font-weight: bold;
margin: 0;
position: fixed;
top: 100px;
left: 50px;
text-shadow: 0 -1px rgba(0, 0, 0, 0.4);
}
#first article {
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(150, 150, 150, 0.1);
box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.4);
padding: 18px;
position: absolute;
top: 200px;
width: 800px;
}
/* section second */
#second {
padding: 80px 0;
}
#second article {
background: rgba(51, 51, 51, 0.9);
border: 1px solid rgba(150, 150, 150, 0.1);
box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.4);
color: white;
margin-left: 100px;
padding: 10px 20px;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
line-height: 1.5em;
width: 445px;
}
/* section third */
#third article {
background: rgba(51, 51, 51, 0.9);
border: 1px solid rgba(150, 150, 150, 0.1);
box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
color: white;
padding: 10px 20px;
margin: 100px 0 0 60%;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
line-height: 1.5em;
color: white;
position: absolute;
top: 0;
}
#third img {
border: 8px solid white;
box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.4);
height: 350px;
width: 560px;
position: absolute;
left: 30px;
top: 600px;
-webkit-transform: rotate(-8deg);
-moz-transform: rotate(-8deg);
-ms-transform: rotate(-8deg);
-o-transform: rotate(-8deg);
transform: rotate(-8deg);
}
/* section the end */
#theend h2 {
color: white;
font-size: 4em;
left: 50%;
margin-left: -150px;
position: absolute;
text-shadow: 0 0 16px rgba(140, 123, 96, 0.8);
top: 180px;
width: 300px;
}