Loader bug jquery

Asked

Viewed 16 times

0

I’m having a problem in my jquery jQuery:

/Pre-Loader
     jQuery(window).load(function () {

         $('.site').hide(1);
         $('.id-sub').hide();
         $("#loading").fadeOut(2000,function(){
             $('.site').show("slow");
             $('#n2-ss-2-align').show(1);
             var currentPage = window.location.hash;//captura o link da pagina
             if (currentPage) {
                 $(currentPage).slideDown(2000).addClass('fixed');
                 $('html,body').animate({ 'scrollTop': $(currentPage).offset().top });
             }
    });



     });

I’m doing up hiding the .site but if I don’t use $('.site').hide(1); value 1 and leave worthless my Slider not appear I am using plugin Smart Slider but if I leave with (1) it shows the hidden content could help me solve this problem?

NOTE: I already used tbm .css("display", "none"); and it doesn’t work.

  • Face your question is a little confused, da para vc dar uma revisada no texto?

  • Your question was not clear, you load the site and hide it, to make the animation with the preloader is this? What is the class .website, is the entire site?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.