From 283da9c8904d93089e1163baecc112775ec85804 Mon Sep 17 00:00:00 2001 From: Jamal Yarali Date: Wed, 16 Oct 2019 14:30:06 +0330 Subject: [PATCH] after loading all page elements(including images), hide the preloader (#88) * After loading all page elements(including images), hide the preloader * added fadeout effect to the preloader --- assets/js/main.js | 4 ++++ index.html | 17 +++-------------- 2 files changed, 7 insertions(+), 14 deletions(-) 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" /> - - +
Made with by GNU Linux Users' Group + + - - - -