Skip to content

Instantly share code, notes, and snippets.

@uryu-myao
Last active April 17, 2018 08:09
Show Gist options
  • Save uryu-myao/6f3126a99820cfe20834a31fe7512f96 to your computer and use it in GitHub Desktop.
Save uryu-myao/6f3126a99820cfe20834a31fe7512f96 to your computer and use it in GitHub Desktop.
page loading control
$(function () {
var h = $(window).height();
$('.contents, #top').css('display','none');
$('.load, load-logo').height(h).css('display','block');
});
$(window).load(function () {
$('.load').fadeOut(800);
$('.load-logo').fadeOut(300);
$('.contents, #top').css('display', 'block');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment