File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ export default {
32
32
overlay: null
33
33
};
34
34
},
35
+ created () {
36
+ window .addEventListener (' load' , () => {
37
+ $ (' #loader' ).fadeOut (350 );
38
+ });
39
+ },
35
40
mounted () {
36
41
this .overlay = document .querySelector (' #wrapper > .header_overlay' );
37
42
},
@@ -72,9 +77,6 @@ export default {
72
77
}
73
78
}
74
79
75
- //
76
- // Overlay
77
- //
78
80
.header_overlay {
79
81
display : none ;
80
82
background-color : rgba ($black , 0.8 );
@@ -85,4 +87,19 @@ export default {
85
87
left : 0 ;
86
88
z-index : 19997 ;
87
89
}
90
+
91
+ #loader {
92
+ background : {
93
+ color : $_color-base ;
94
+ image : url (" ./img/loader.gif" );
95
+ repeat : no-repeat ;
96
+ position : 50% 50% ;
97
+ }
98
+ width : 100% ;
99
+ height : 100% ;
100
+ position : fixed ;
101
+ top : 0 ;
102
+ left : 0 ;
103
+ z-index : 10000 ;
104
+ }
88
105
</style >
You can’t perform that action at this time.
0 commit comments