Skip to content

Commit d691e42

Browse files
committed
fix some styling issues
1 parent 958a748 commit d691e42

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

index.html

+25-14
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,36 @@
9595
border: 1px solid #eee;
9696
}
9797

98-
[data-rellax-container],
99-
.rellax-wrapper {
100-
position: absolute;
101-
top: 0;
102-
left: 0;
103-
overflow: hidden;
104-
width: 100%;
105-
height: 100%;
106-
}
107-
108-
.rellax-element {
109-
position: fixed;
110-
top: 0;
111-
left: 0;
98+
[data-rellax],
99+
[data-rellax-container] {
112100
width: 100%;
113101
height: 100%;
102+
}
103+
104+
[data-rellax] {
105+
will-change: transform, opacity;
106+
backface-visibility: hidden;
107+
}
108+
109+
[data-rellax-container] {
114110
overflow: hidden;
115111
}
116112

113+
[data-rellax-container] [data-rellax] {
114+
transition: opacity .3s ease-out;
115+
opacity: 0;
116+
}
117+
118+
.js [data-rellax-container] [data-rellax] {
119+
opacity: 1;
120+
}
121+
122+
.rellax-element.rellax-hidden {
123+
pointer-events: none;
124+
visibility: hidden;
125+
opacity: 0;
126+
}
127+
117128
.header-content-wrap {
118129
position: relative;
119130
width: 100%;

0 commit comments

Comments
 (0)