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 7020023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:15:49+00:00 2026-05-27T23:15:49+00:00

If you have a look at Apple’s Mac page on their website. http://www.apple.com/mac/ Their

  • 0

If you have a look at Apple’s Mac page on their website. http://www.apple.com/mac/
Their “body” displays an image in the center while the page is loading. After the page is fully loaded, their content fades in. If you use Chrome or Safari and open the Element Inspector, you’ll see their body gets the class="loaded revealed" when the page is loaded. And that triggers the content to fade in. If you remove the classes, the content will fade out.

I’m looking for something similar to this for my website. I don’t want the whole entire content to not display, I still want to display the header and footer. So basically I want the div#content_area to slide down on document ready… The only problem is, they don’t use any kind of display:none; for their body. They’re a bit more careful about that, because if the JS file fails, the content will still display.

How can I make this? They way they do it must be lightweight because anybody can write something like

$(document).ready(function() {
    $('div#content_area').attr(class, loaded revealed);
}); 

All I need to do is add the .slide() function and hide the content until the page loads.

  • 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-05-27T23:15:50+00:00Added an answer on May 27, 2026 at 11:15 pm

    Have found out that Apple has all it’s elements opacity set to 0. And on the body load, it adds the classes to the body and uses some basic CSS like this

    div{
    opacity:0;
    }
    body.loaded div {
    opacity:1;
    transition:etc.etc.;
    }
    

    Here’s my version, http://jsfiddle.net/dqUaX/1/

    What’s great about it is:

    1. Opacity is considered a CSS3 attribute so if a browser is outdated the content won’t hide.
    2. I am actually using jQuery to set the opacity to 0 so even if the user has a css3 browser, but has JavaScript disabled, the content will still display.
    3. Since you’ll need CSS3 to hide the div, I used a giant DATA URI for the background image so it doesn’t have to load.

    Pretty awesome no?

    You must put the script before the end of the <body> closing tag…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have paginated URLs that look like http://www.domain.com/tag/apple/page/1/ If a URL such as http://www.domain.com/tag/apple/page/*2/
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css
Have a look on following application http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8 i think they are using the same
Please have a look on this application http://itunes.apple.com/app/yowza-mobile-coupons/id312021877?mt=8 I just want to add custom
have a look at the top menu on these two pages on Firefox: http://outsidemma.com/2010/100031-bj-penn-the-prodigy-jay-dee.php
I have just view the iPhone application Touch Cam ( http://itunes.apple.com/us/app/touch-cam-video-recording/id337848815?mt=8 ) which provides
Have a look at this jsfiddle: http://jsfiddle.net/Dh96F/1/ The Expand button will animate the widening
I am starting to look for the Apple Push Notification Service . I have
I have look-up-table as defined below and I'm making use of GCC. When I
I often see a pattern used in circumstances where we have look-up code that

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.