<style>
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background-repeat: no-repeat;
background: url('images/page-loader.gif');
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script>
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
html
I have implemented this loader code for my website, however, it seems to be repeating itself three times. I have tried using the 'no repeat' CSS property but it doesn't seem to be working.