Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8934069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:41:56+00:00 2026-06-15T09:41:56+00:00

I am trying to fade in the whole page after its loaded, my code:

  • 0

I am trying to fade in the whole page after its loaded,

my code:

<script type="text/javascript">
    $(window).bind("load", function() {
        $('#overlay').fadeOut(function() {
            $('html').fadeIn();
        });
    });
</script>


<html style="display:none">
....
<body>
.....
</body>
</html>
<div id="overlay">
     <img src="ajax-loader.gif" alt="Loading" />
     Loading...
</div>

The problem is the loading image doesn’t show

what should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:41:57+00:00Added an answer on June 15, 2026 at 9:41 am

    The loader is in the HTML block, which has display:none. So it won’t display. (even though you put it outside of it)

    Instead, create a container DIV with display:none, hide that & fade it in, instead of the HTML.

    <html>
    <head>
    
    <script type="text/javascript">
        $(window).bind("load", function() {
            $('#overlay').fadeOut(function() {
                $('#container').fadeIn();
            });
        });
    </script>
    </head>
    <body>
    
        <div id="overlay">
             <img src="ajax-loader.gif" alt="Loading" />
             Loading...
        </div>
        <div id="container" style="display:none">
    
        </div>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to fade in my menu bar after an empty div is loaded
I'm trying to load an image asynchronously using jquery javascript framework. The loaded image
I'm trying to fade in / out text and then after so long stop
I'm trying to have images fade in with css3 once they're loaded. The problem
I'm trying to create a fade in/out transition between page navigations with an implementation
I am trying to fade out the existing text of a dialog box, and
I am trying to animate an NSPanel derived window with a fade-in while sliding
OK, I spent a whole day trying to revamp my seamless page transition method.
I am trying to fade in a child element when a parent element is
I am trying to fade out a Flash embed object and fade in regular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.