diff --git a/css/site-loader.css b/css/site-loader.css index bcae5d8..6741c7a 100644 --- a/css/site-loader.css +++ b/css/site-loader.css @@ -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; diff --git a/js/site-loader.js b/js/site-loader.js index 0589652..3c5ed34 100644 --- a/js/site-loader.js +++ b/js/site-loader.js @@ -4,7 +4,7 @@ var siteLoader = function(){ var loader = $('#site-loader'); if (loader.length) { - $(loader).addClass('loaded'); + $('body').addClass('loaded'); } }