Hocam umarım işine yarar. Kendi sitemde kullandığım şekilde sunuyorum sana.
html: (body içerisine)
<div id="yukleniyor" class="yukleniyor"><div><span><!--Buraya resim koyabilirsin, döndürme işlemini css yürütecek--></span><p>Yükleniyor...</p></div></div>
--------------------
css:
.yukleniyor {
position: fixed;
z-index: 3;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.yukleniyor div {
position: fixed;
top: 50%;
left: 50%;
width: 140px;
height: 140px;
padding: 40px;
margin: -110px 0 0 -110px;
background: #fff;
}
.yukleniyor p {
position: absolute;
left: 0;
bottom: 0;
padding: 10px 20px;
}
.yukleniyor span {
display: block;
width: 120px;
height: 120px;
margin-top: -10px;
border: 10px solid #404040;
border-right-color: transparent;
border-left-color: transparent;
border-radius: 50%;
}
.yukleniyor span {
animation:spin 1s linear infinite;
-o-animation:spin 1s linear infinite;
-ms-animation:spin 1s linear infinite;
-moz-animation:spin 1s linear infinite;
-webkit-animation:spin 1s linear infinite;
}
------------------
javascript:
$('#yukleniyor').fadeOut('fast', function()
{
$('#bg').fadeIn('fast');
$('#page').addClass('loaded');
});