Solved

apple homepage transition

Posted on 2011-03-02
4
261 Views
Last Modified: 2012-05-11
Hiya

I want to do the same effect that the apple homepage has when you got to it.

I have a div called mainThing that i want visable like the IPAD is on the current apple.com homepage.

http://www.apple.com/

Ww
0
Comment
Question by:willa666
  • 2
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 250 total points
Comment Utility
Seems the code is here

http://images.apple.com/global/scripts/ac_blackout.js


<div id="ACBlackout" class="ACBlackout" style="height: 963px; display: none;"><a class="ACBlackoutMain linked" href="/ipad/" onclick="s_objectID=&quot;http://www.apple.com/ipad/_1&quot;;return this.s_oc?this.s_oc(e):true"><img src="http://images.apple.com/home/images/ipad2_title_20110302.png" class="ACBlackoutImg" style="top: 133px; left: 345px; width: 289px; height: 95px;"></a><a class="ACBlackoutMain linked" href="/ipad/" onclick="s_objectID=&quot;http://www.apple.com/ipad/_2&quot;;return this.s_oc?this.s_oc(e):true"><img src="http://images.apple.com/home/images/ipad2_subhead_20110302.png" class="ACBlackoutImg" style="top: 256px; left: 253px; width: 473px; height: 59px;"></a><a class="ACBlackoutMain linked" href="/ipad/" onclick="s_objectID=&quot;http://www.apple.com/ipad/_3&quot;;return this.s_oc?this.s_oc(e):true"><img src="http://images.apple.com/home/images/ipad2_hero_20110302.png" class="ACBlackoutImg" style="top: 115px; left: -318px; width: 1314px; height: 480px;"></a></div>

Open in new window

0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 250 total points
Comment Utility
with jquery (2000 for 2 seconds) :
$(document).ready(function() {
     $("#mainThing").fadeIn(2000, function() {
         setTimeout("$('.mybody').fadeIn(2000)", 2000);   
     });
});

Open in new window





<div class="mybody" style="display:none">head elements like menus & co</div>
<div id="mainThing" style="display:none">IPAD</div>
<div class="mybody" style="display:none">element at the bottom / second part of the page</div>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
Why the 3 x 2000?
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
:)

Take 2s to appear with fade effect
After 2s alone
Take 2s to display the other elements of the page with fade effect

But we can do something different...
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now