Untitled
unknown
html
3 years ago
1.8 kB
8
Indexable
<style>
.preloader {
width: 100%;
height: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
position: fixed;
background-color: #fff;
z-index: 999;
}
@-webkit-keyframes spiner-animation {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spiner-animation {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.spiner {
width: 108px;
height: px;
border: 2px solid #ffffff;
margin: -34px 0 0 -34px;
position: absolute;
top: 50%;
left: 50%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-animation: spiner-animation 2.6s linear infinite;
animation: spiner-animation 2.6s linear infinite;
}
.spiner:before,
.spiner:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
border: 2px solid #ffffff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-animation: spiner-animation 1.3s linear infinite;
animation: spiner-animation 1.3s linear infinite;
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
.spiner:before {
width: 48px;
height: 48px;
margin: -24px 0 0 -24px;
}
.spiner:after {
width: 96px;
height: 96px;
margin: -48px 0 0 -48px;
}
</style>
<div class="preloader">
<img src="pre.jpg" class="spiner"></div>
</div>
<script>
jQuery(document).ready(function($) {
$(window).load(function() {
setTimeout(function() {
$('.preloader').fadeOut('slow', function() {});
}, 2000);
});
});
</script>Editor is loading...