This is my website: http://themescreators.com/seven-host/
I am using a custom loading effect and for some reason it doesn't work well.
This is the code used on the loading effect:
HTML:
<div class="loadingContainer">
<div class="loading">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</div>
CSS:
.loadingContainer {
text-align: center;
margin: 0 auto;
position: absolute;
top: 50%;
left: 50%;
display: inline-block;
z-index: 1000;
}
.loadingContainer .loading {
display: inline-block;
text-align: center;
}
.loadingContainer .loading > div {
background-color: #21242e;
height: 80px;
width: 6px;
display: inline-block;
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
animation: stretchdelay 1.2s infinite ease-in-out;
}
.loadingContainer .loading .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.loadingContainer .loading .rect3 {
-webkit-animation-delay: -1s;
animation-delay: -1s;
}
.loadingContainer .loading .rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.loadingContainer .loading .rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
.loading i {
width: 52px;
height: 60px;
position: absolute;
left: 50%;
margin-left: -21px;
top: 50%;
margin-top: -30px;
font-size: 60px;
display: inline-block;
}
JS:
jQuery(window).load(function(){
jQuery('.loadingContainer').css({'opacity' : 0 , 'display' : 'none'});
});
In Safari the ".loadingContainer" isn't removed after the page is loaded, so you only see all the page blank. Can somebody help me fixing this?