• put your amazing slogan here!

    Add Jquery Page Loading Effect to Blogger Blog



    Did You Ever Think About Adding a Page Loading Effect to Your Blog. Well in this Post Iam Going to Show You How to Add a Jquery Page Loading Effect to Blogger.So First See the Live Demo of the Widget.Well This Widget Consists Of a Loading Icon and a Horizontal Bar Which Looks like a Loading Progress bar.






    How To Add JQuery Page Loding Effect To Blogger?
    • Go to Blogger >Template >Edit HTML
    • Now Check Expand Widget Template Box
    • Now Search For  </head> In your Blogs Template
    • Now Copy & Paste Code Below Just Above It
    • <style>
      /*  jQuery page loading effect by www.goodinblogging.blogspot.com */
      #md-loading {
          position: fixed;
          z-index: 50;
          top: 0; left: 0;
          width: 100%; height: 100%;
          background: #FDFEF8 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzzKGcMZpIwD3O1aKH6Z2gDX_K1vDNE38T-1ai8a6DPqu44illVinLsNx9PmC_jrPkaLakpEV8uEYHm2CitpAY819VHrJEjttqX1jUkaPrkVYXLWZxCY2w0YjRlI3o9GQy3_89eV3wHNq1/s1600/MD-Lodding.gif) no-repeat center;
          line-height: 350px;
          text-align: center;
          font-size: 36px;
          color: #353231;
          text-indent: -9999px;
      }
      .MD #md-loading { display: none; }

      @media only screen and (device-width: 768px) {
          #loading {
              position:absolute;
              width:1040px;
              min-height:768px;
          }
      }
      #md-progress-bar {
          position: absolute;
          top: 0; left: 0;
          background: #de1301;
          opacity: 0.8;
          width: 0;
          height: 18px;
      }
      #md-loader {
          height: 100%;
          display: none;
      }
      </style>
      <script>

      (function($){

      $("html").removeClass("MD"); 


      $("#header").ready(function(){ $("#md-progress-bar").stop().animate({ width: "25%" },1500) });
      $("#footer").ready(function(){ $("#md-progress-bar").stop().animate({ width: "75%" },1500) });


      $(window).load(function(){

          $("#md-progress-bar").stop().animate({ width: "100%" },600,function(){
              $("#md-loading").fadeOut("fast",function(){ $(this).remove(); });
          });

      });
      })(jQuery);
      </script>

      Now Search For <body>
      Now Copy & Paste Below Code Just After It

      <div id='md-loading'><div id='md-progress-bar'></div><div id='md-loader'>Loading...</div></div>
      If you want to show this effect in homepage only use the code below.

      <b:if cond='data:blog.url == data:blog.homepageUrl'> 
       <div id='md-loading'><div id='md-progress-bar'></div><div id='md-loader'>Loading...</div></div></b:if>
      Now Save Your Template and You're Done.That's it,Enjoy!

    0 comments:

    Post a Comment

     

    Blogger news

     

    About

    Blogroll