This repository was archived by the owner on Apr 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.css
More file actions
126 lines (71 loc) · 1.3 KB
/
example.css
File metadata and controls
126 lines (71 loc) · 1.3 KB
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
117
118
119
120
121
122
123
/*
required css to make things work
*/
.parallax-section {
/* position relative is needed as a references for child element positions */
position: relative;
/* zindex needed to put content in front of the images */
z-index: 1;
}
.mr-px-img {
/* This container is needed for cropping and image positioning if parallax fx is disabled */
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
display: block;
overflow: hidden;
z-index: -999;
padding: 0;
margin: 0;
}
.mr-px-img img {
/* basic scaling and positioning rules which will be overwriten by javascript */
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: auto;
}
/*
css for demo
*/
html, body{
margin: 0;
padding: 0;
height: 100%;
}
.parallax-section {
padding: 60px;
}
.parallax-section p {
font-size: 14px;
font-family: 'Helvetica Neue', Arial, sans-serif;
font-weight: bold;
text-transform: uppercase;
text-align: center;
letter-spacing: 5px;
}
.section1 {
padding-top: 150px;
padding-bottom: 150px;
margin-top: 80px;
color: #fff;
}
.section2 {
padding-top: 200px;
padding-bottom: 200px;
}
.section3 {
color: #fff;
}
.section4 {
padding-top: 100px;
padding-bottom: 100px;
color: #fff;
}
.section5 {
padding-top: 100px;
padding-bottom: 800px;
}