Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 189: Line 189:
}
}
-
.navbar div.head {
+
.head {
display: inline-block;
display: inline-block;
padding: 0 10px;
padding: 0 10px;
Line 195: Line 195:
}
}
-
.navbar div.nav {
+
.nav {
display: inline-block;
display: inline-block;
height: 90px;
height: 90px;
Line 208: Line 208:
}
}
-
.navbar div.nav:hover span{
+
.nav img{
-
opacity: 0.3;
+
-
}
+
-
+
-
.navbar div.nav:hover img{
+
-
opacity: 0.3;
+
-
}
+
-
+
-
.navbar div.nav div {
+
-
position: absolute;
+
-
display: none;
+
-
}
+
-
+
-
.navbar div.nav:hover div {
+
-
display: block;
+
-
}
+
-
+
-
.navbar div.nav img{
+
position: absolute;
position: absolute;
height: 110%;
height: 110%;
Line 232: Line 215:
}
}
-
.navbar div.nav span{
+
.nav span{
position: absolute;
position: absolute;
margin-left: -8%;
margin-left: -8%;
Line 398: Line 381:
$(window).resize(function() {
$(window).resize(function() {
$(".wrapper").height($(document).height()-200);
$(".wrapper").height($(document).height()-200);
 +
});
 +
 +
//rotate module icons
 +
$(".nav").hover(function() {
 +
$(".nav").color("blue");
});
});
Line 470: Line 458:
<div class="nav" style="background-image: url('http://www.beverly.kiev.ua/fonmain.jpg');">
<div class="nav" style="background-image: url('http://www.beverly.kiev.ua/fonmain.jpg');">
<span>Module</span>
<span>Module</span>
-
<div> This is a short desc <br> of the module. </div>
 
<img src="http://icons.iconarchive.com/icons/visualpharm/icons8-metro-style/512/Sport-Activities-Skydiving-gear-icon.png">
<img src="http://icons.iconarchive.com/icons/visualpharm/icons8-metro-style/512/Sport-Activities-Skydiving-gear-icon.png">
</div>
</div>

Revision as of 14:32, 25 July 2014

Parallax Test

Parallax 2 Use arrow keys to move through slider -> I'll get mouse controls working in a bit
There's no parallax effect right now... It's giving me some trouble Also all the colors and images are temporary ->
General page layout coming soon ...and the hprac page that I keep forgetting to work on