-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
117 lines (104 loc) · 2.7 KB
/
index.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
117
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.viewport {
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.parallax-parent {
position: relative;
top: 100vh;
left: 0;
width: 100vh;
height: 100vw;
-webkit-transform-origin: top left;
transform-origin: top left;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
overflow-x: hidden;
overflow-y: scroll;
-webkit-perspective-origin: 50% 50% 0;
perspective-origin: 50% 50% 0;
-webkit-perspective: 3px;
perspective: 3px;
}
.parallax-parent::-webkit-scrollbar {
display: none;
}
.background-colors {
position: relative;
width: 100vh;
height: 300vw;
background: #fffc00;
background: -webkit-gradient(linear, left bottom, left top, from(#fffc00), color-stop(25%, #fffc00), color-stop(50%, #229512), to(red));
background: linear-gradient(0deg, #fffc00 0%, #fffc00 25%, #229512 50%, red 100%);
}
.parallax-child-container {
position: absolute;
width: 100vh;
height: 100vw;
text-align: center;
overflow: hidden;
z-index: 1;
}
.parallax-child-container:nth-of-type(1) {
top: 0vw;
}
.parallax-child-container:nth-of-type(2) {
top: 100vw;
}
.parallax-child-container:nth-of-type(3) {
top: 200vw;
}
.parallax-child {
position: absolute;
top: 50%;
left: 50%;
width: 100vw;
padding: 0 30vw;
-webkit-transform-origin: 50% 50% 0;
transform-origin: 50% 50% 0;
-webkit-transform: translateX(-50%) translateY(-50%) rotate(90deg);
transform: translateX(-50%) translateY(-50%) rotate(90deg);
}
.parallax-child h1 {
font-size: 5rem;
font-family: sans-serif;
font-weight: 700;
color: whitesmoke;
-webkit-transition: color 1s ease-in-out, -webkit-transform 3s ease-in-out;
transition: color 1s ease-in-out, -webkit-transform 3s ease-in-out;
transition: transform 3s ease-in-out, color 1s ease-in-out;
transition: transform 3s ease-in-out, color 1s ease-in-out, -webkit-transform 3s ease-in-out;
cursor: pointer;
}
.parallax-child h1:hover {
-webkit-transform: scale(1.2);
transform: scale(1.2);
color: black;
}
.parallax-background {
position: absolute;
top: 50%;
left: 50%;
width: 300vw;
height: 100vh;
-webkit-transform: translateX(-50%) translateY(180%) translateZ(-8px) scale(2.5) rotate(90deg);
transform: translateX(-50%) translateY(180%) translateZ(-8px) scale(2.5) rotate(90deg);
z-index: 0;
}
.parallax-background h1 {
height: 100vh;
line-height: 100vh;
font-family: sans-serif;
font-size: 10rem;
text-align: center;
-webkit-text-stroke: 2px #ccc;
-webkit-text-fill-color: transparent;
}
/*# sourceMappingURL=index.css.map */