Skip to content

Instantly share code, notes, and snippets.

@maksymkv25
Last active December 16, 2017 08:51
Show Gist options
  • Save maksymkv25/0f25d3b6ab7ba1a6d4e3deb9c356286a to your computer and use it in GitHub Desktop.
Save maksymkv25/0f25d3b6ab7ba1a6d4e3deb9c356286a to your computer and use it in GitHub Desktop.
jQuery Preloader
.loader{
backgound: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;
}
.loader_inner{
background-image: url("../img/");
background-repeat: no-repeat;
background-position: center center;
background-color: #fff;
height: 60px;
width: 60px;
margin-top: -30px;
margin-left: -30px;
left: 50%;
top: 50%;
position: absolute;
}
function heightDetect(){
$(".main_head").css("height", $(window).height());
};
//Делает фон на весь экран
heightDetect;
$(window).resize(function(){
heightDetect();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment