Skip to content

Commit

Permalink
fixed scroll when body loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
hotdoy committed Dec 23, 2019
1 parent 88bb3d6 commit ca95bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/site-loader.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
100% {opacity: 0; transform: translateY(-50px);}
}

#site-loader.loaded{
body.loaded #site-loader{
transition: all 0.2s;
opacity: 0;
visibility: hidden;
Expand Down
2 changes: 1 addition & 1 deletion js/site-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var siteLoader = function(){
var loader = $('#site-loader');
if (loader.length) {
$(loader).addClass('loaded');
$('body').addClass('loaded');
}
}

Expand Down

0 comments on commit ca95bd4

Please sign in to comment.