-
Notifications
You must be signed in to change notification settings - Fork 0
/
parallax.css
60 lines (51 loc) · 1007 Bytes
/
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
.parallax-wrapper {
width: 100vw;
height:100vh;
padding-top:20vh;
box-sizing: border-box;
font-family: 'futura-pt', sans-serif;
}
.regular-wrapper {
z-index: 2;
position: relative;
height:100vh;
padding-top:20vh;
background-color: rgb(255, 255, 255);
}
.regular-wrapper2 {
z-index: 2;
position: relative;
padding-top:10vh;
padding-bottom: 10vh;
background-color: rgb(255, 255, 255);
}
.parallax-wrapper::before {
content:"";
width: 100vw;
height: 100vh;
background-image: url(/images/e-patternbackground.png);
background-position: bottom center;
background-size: cover;
background-repeat: no-repeat;
position: absolute;
z-index: -1;
}
html {
overflow: hidden;
}
body {
height: 100vh;
perspective: 1px;
transform-style: preserve-3d;
overflow-x:hidden;
overflow-y:auto;
}
.parallax-wrapper {
transform-style: preserve-3d;
}
.parallax-wrapper::before {
transform:translateZ(-1px) scale(2);
}
.parallax-wrapper::before {
z-index: -1;
}