|
8 | 8 | <script type="text/javascript" src="/javascripts/jquery.easing.1.3.js"></script>
|
9 | 9 |
|
10 | 10 | <style>
|
| 11 | + body{ |
| 12 | + |
| 13 | + } |
11 | 14 | #actions{
|
12 | 15 | position:absolute;
|
13 | 16 | top:25px;
|
14 | 17 | right:25px;
|
15 | 18 | }
|
| 19 | + |
| 20 | + #canvas{ |
| 21 | + background:url(home_bkg.jpg); |
| 22 | + position:relative; |
| 23 | + width:1100px; |
| 24 | +/* height:600px;*/ |
| 25 | + border:1px dashed #ccc; |
| 26 | + margin:0 auto; |
| 27 | + overflow:hidden; |
| 28 | + } |
16 | 29 | #container{
|
17 |
| - background:#fafafa; |
| 30 | +/* background:#fafafa;*/ |
18 | 31 | position:relative;
|
19 | 32 | width:960px;
|
20 |
| - height:500px; |
21 |
| - border:1px solid #ccc; |
22 |
| - margin:50px auto; |
23 |
| - overflow:hidden; |
| 33 | + height:550px; |
| 34 | + border:1px dashed #ccc; |
| 35 | + margin:25px auto 0; |
| 36 | +/* overflow:hidden;*/ |
24 | 37 | }
|
25 | 38 |
|
26 | 39 | #logo_menu{
|
|
29 | 42 | }
|
30 | 43 | #boots{
|
31 | 44 | position:absolute;
|
32 |
| - top:150px; |
33 |
| - left:150px; |
| 45 | + top:130px; |
| 46 | + left:25px; |
34 | 47 | }
|
35 |
| - .has_background:hover{ |
36 |
| - background:url(boots_glow.png); |
| 48 | + #boots.has_background{ |
| 49 | + background:url(boots_bkg_350.png); |
37 | 50 | }
|
38 |
| - #boots:hover{ |
39 |
| -/* background:url(http://github.com/%3Cspan%20class=%22x%20x-first%20x-last%22%3Eboots_glow%3C/span%3E.png);*/ |
| 51 | + #boots.has_background:hover{ |
| 52 | + background:url(boots_hover_350.png); |
40 | 53 | }
|
41 | 54 |
|
| 55 | + #brain{ |
| 56 | + position:absolute; |
| 57 | + top:40px; |
| 58 | + left:350px; |
| 59 | + } |
| 60 | + #brain.has_background{ |
| 61 | + background:url(brain_bkg_450.png); |
| 62 | + } |
| 63 | + #brain.has_background:hover{ |
| 64 | + background:url(brain_hover_450.png); |
| 65 | + } |
| 66 | + |
| 67 | + #plane{ |
| 68 | + position:absolute; |
| 69 | + top:275px; |
| 70 | + left:550px; |
| 71 | + } |
| 72 | + #plane.has_background{ |
| 73 | + background:url(plane_bkg_410.png); |
| 74 | + } |
| 75 | + #plane.has_background:hover{ |
| 76 | + background:url(plane_hover_410.png); |
| 77 | + } |
| 78 | + |
42 | 79 | #explore_header{
|
43 | 80 | display:block;
|
44 | 81 | position:relative;
|
|
51 | 88 | width:585px;
|
52 | 89 | text-align:center;
|
53 | 90 | margin:50px auto 0;
|
54 |
| - left:800px; |
| 91 | + left:1200px; |
55 | 92 | }
|
56 | 93 |
|
57 | 94 | .post-it{
|
|
78 | 115 | .clr{
|
79 | 116 | clear:both;
|
80 | 117 | }
|
| 118 | + |
| 119 | + #logo{ |
| 120 | + position:absolute; |
| 121 | + left:270px; |
| 122 | + top:240px; |
| 123 | + } |
81 | 124 | </style>
|
82 | 125 |
|
83 | 126 | </head>
|
84 | 127 |
|
85 | 128 | <body>
|
86 |
| - <div id="container"> |
87 |
| - <img src="logo_menu.png" width="500" height="41" alt="Logo Menu" id="logo_menu" class="header"> |
88 |
| - <img src="explore_header.png" width="753" height="92" alt="Explore Header" id="explore_header" class="header"> |
89 |
| - |
90 |
| - <div class="post-its"> |
91 |
| - <div id="post_it_1"> |
92 |
| - <img src="post_it_blue.png" alt="Post It Blue" class="post-it"> |
93 |
| - </div> |
94 |
| - <div id="post_it_2"> |
95 |
| - <img src="post_it_yellow.png" alt="Post It Yellow" class="post-it"> |
96 |
| - </div> |
97 |
| - <div id="post_it_3"> |
98 |
| - <img src="post_it_pink.png" alt="Post It Pink" class="post-it"> |
| 129 | + <div id="canvas"> |
| 130 | + <div id="container"> |
| 131 | + <img src="logo_menu.png" width="500" height="41" alt="Logo Menu" id="logo_menu" class="header"> |
| 132 | + <img src="explore_header.png" width="753" height="92" alt="Explore Header" id="explore_header" class="header"> |
| 133 | + |
| 134 | + <div class="post-its"> |
| 135 | + <div id="post_it_1"> |
| 136 | + <img src="post_it_blue.png" alt="Post It Blue" class="post-it"> |
| 137 | + </div> |
| 138 | + <div id="post_it_2"> |
| 139 | + <img src="post_it_yellow.png" alt="Post It Yellow" class="post-it"> |
| 140 | + </div> |
| 141 | + <div id="post_it_3"> |
| 142 | + <img src="post_it_pink.png" alt="Post It Pink" class="post-it"> |
| 143 | + </div> |
| 144 | + <div class="clr"></div> |
99 | 145 | </div>
|
100 |
| - <div class="clr"></div> |
| 146 | + |
| 147 | + <img id="boots" src="boots_350.png" width="350" height="350" alt="Boots" class="has_background not_brain"> |
| 148 | + <img id="brain" src="brain_450.png" width="450" height="290" alt="Brain" class="has_background not_boots"> |
| 149 | + <img id="plane" src="plane_410.png" width="410" height="220" alt="Plane" class="has_background not_boots"> |
| 150 | + |
| 151 | + <img id="logo" src="home_logo.png" width="401" height="309" alt="Home Logo" class="not_brain not_boots"> |
101 | 152 | </div>
|
102 |
| - |
103 |
| - <img id="boots" src="boots_med.png" width="250" height="250" alt="Boots" class="has_background"> |
104 | 153 | </div>
|
105 | 154 | </body>
|
106 | 155 |
|
|
113 | 162 |
|
114 | 163 | $('#boots').click(function() {
|
115 | 164 | if ($(this).css("opacity") == 1){
|
| 165 | + fadeOutLogo(); |
116 | 166 | moveBootsToBackground();
|
117 | 167 | }
|
118 | 168 | });
|
|
129 | 179 | if ($("#boots").css("opacity") != 1){
|
130 | 180 | returnBootsToForeground();
|
131 | 181 | slideOutPostIts();
|
132 |
| - fadeOutExploreHeader(); |
| 182 | + |
133 | 183 | }
|
134 | 184 | });
|
135 | 185 |
|
| 186 | + function fadeOutLogo(){ |
| 187 | + $('.not_boots').animate({opacity: 0.0}, |
| 188 | + {queue:false, duration:350, easing: "easeOutSine"}); |
| 189 | + } |
| 190 | + |
| 191 | + function fadeInLogo(){ |
| 192 | + $('.not_boots').animate({opacity: 1.0}, |
| 193 | + {queue:false, duration:500, easing: "easeOutSine"}); |
| 194 | + } |
| 195 | + |
136 | 196 | function fadeOutBoots(){
|
137 | 197 | $('#boots').removeClass("has_background");
|
138 | 198 | $('#boots').animate({opacity: 0.0},
|
139 | 199 | {queue:false, duration:350, easing: "easeOutSine"});
|
140 | 200 | }
|
141 | 201 |
|
142 | 202 | function fadeInBoots(){
|
143 |
| - $('#boots').addClass("has_background"); |
144 | 203 | $('#boots').animate({opacity: 1},
|
145 |
| - {queue:false, duration:350, easing: "easeInSine"}); |
| 204 | + {queue:true, duration:350, easing: "easeInSine",complete: returnBootBackground}); |
| 205 | + } |
| 206 | + |
| 207 | + function returnBootBackground(){ |
| 208 | + $('#boots').addClass("has_background"); |
| 209 | + fadeOutExploreHeader(); |
| 210 | + fadeInLogo(); |
146 | 211 | }
|
147 | 212 |
|
148 | 213 | function moveBootsToBackground(){
|
149 | 214 | $('#boots').removeClass("has_background");
|
150 |
| - $('#boots').animate({opacity: 0.5, height: '+=450', width: '+=450', left: '-=550', top: '-=225'}, |
| 215 | + $('#boots').animate({opacity: 0.7, height: '+=450', width: '+=450', left: '+=750', top: '-=150'}, |
151 | 216 | {queue:false, duration:1000, easing: "easeOutSine", complete: slideInPostIts});
|
152 | 217 | }
|
153 | 218 |
|
154 | 219 | function returnBootsToForeground(){
|
155 |
| - $('#boots').addClass("has_background"); |
156 |
| - $('#boots').animate({opacity: 1.0, height: '-=450', width: '-=450', left: '+=550', top: '+=225'}, |
157 |
| - {queue:false, duration:1000, easing: "easeOutBounce"}); |
| 220 | + $('#boots').animate({opacity: 1.0, height: '-=450', width: '-=450', left: '-=750', top: '+=150'}, |
| 221 | + {queue:false, duration:1000, easing: "easeInSine", complete: returnBootBackground}); |
158 | 222 | }
|
159 | 223 |
|
160 | 224 | function slideInPostIts(){
|
161 | 225 | console.log("slide In Post-Its");
|
162 |
| - $(".post-its").animate({left: '-=800'}, |
| 226 | + $(".post-its").animate({left: '-=1200'}, |
163 | 227 | {queue:false, duration:500, easing: "easeOutSine", complete: fadeInExploreHeader});
|
164 | 228 | }
|
165 | 229 |
|
166 | 230 | function slideOutPostIts(){
|
167 |
| - $(".post-its").animate({left: '+=800'}, |
| 231 | + $(".post-its").animate({left: '+=1200'}, |
168 | 232 | {queue:false, duration:500, easing: "easeOutSine"});
|
169 | 233 | }
|
170 | 234 |
|
|
0 commit comments