Files
shopPRO/templates/site/loader.php
2024-10-23 13:44:50 +02:00

65 lines
1.4 KiB
PHP

<div id="loader">
<div class="lds-ripple"><div></div><div></div></div>
</div>
<style type="text/css">
#loader {
background: #77cdd1;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 100;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-ms-flex-pack: center;
}
.lds-ripple {
display: inline-block;
position: relative;
width: 64px;
height: 64px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #fff;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 28px;
left: 28px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: -1px;
left: -1px;
width: 58px;
height: 58px;
opacity: 0;
}
}
</style>
<script class="footer" type="text/javascript">
$( function() {
$( '#loader' ).fadeOut( 500, function() { $( this ).remove(); });
});
</script>