diff --git a/assets/js/main.js b/assets/js/main.js index 2664505..dc2d7f6 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -36,3 +36,7 @@ $(function () { $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 500, 'linear'); }); }); +// after loading all page elements(including images), hide the preloader +$(window).on('load', function() { + $("#wrapper").fadeOut('slow'); +}); diff --git a/index.html b/index.html index 7dfe91a..223fd2a 100644 --- a/index.html +++ b/index.html @@ -12,13 +12,8 @@ crossorigin="anonymous" /> - -
+