File tree 1 file changed +25
-14
lines changed
1 file changed +25
-14
lines changed Original file line number Diff line number Diff line change 95
95
border : 1px solid # eee ;
96
96
}
97
97
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 ] {
112
100
width : 100% ;
113
101
height : 100% ;
102
+ }
103
+
104
+ [data-rellax ] {
105
+ will-change : transform, opacity;
106
+ backface-visibility : hidden;
107
+ }
108
+
109
+ [data-rellax-container ] {
114
110
overflow : hidden;
115
111
}
116
112
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
+
117
128
.header-content-wrap {
118
129
position : relative;
119
130
width : 100% ;
You can’t perform that action at this time.
0 commit comments