Curtain js
by yeyene
HTML
<script src="http://pagota.herobo.com/js/curtain.js"></script>
<div id="header">
<div id="menu">
<ul>
<li><a href="#home" class="curtain-links curtain-links-active">Home</a></li>
<li><a href="#about_us" class="curtain-links">About Us</a></li>
<li><a href="#portfolio" class="curtain-links">Portfolio</a></li>
<li><a href="#programs" class="curtain-links">Programs</a></li>
</ul>
</div>
</div><!-- #header -->
<div id="main">
<div id="container">
<ol class="curtains">
<li id="home" class="cover">
<!--<div class="pattern"></div>-->
<div class="content">
<div class="description">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
</li>
<li id="about_us" class="cover">
<div class="content">
<div class="description">
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages...
CSS
/* Base Style */
html{
height: 100%;
overflow-x: hidden;
}
body {
font: 14px Arial, Helvetica, sans-serif;
color: #444;
}
.pattern {
width: 100%;
height: 100%;
position: absolute;
background-image: url(../images/pattern.png);
opacity: 0.5;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
filter: alpha(opacity=80);
}
#header {
position:fixed;
top:25px;
left:0;
z-index:1000;
width:100%;
/*height:70px; */
text-align:center;
/*background:url(../images/bg_tran.png) repeat;*/
}
#menu {
margin:0 auto;
width:1000px;
text-align:left;
position:relative;
}
#menu #logo {
position:relative;
top:-20px;
left:10px;
z-index:1000;
width:113px;
height:100px;
}
a img {border:none;outline:none;}
#header #menu ul {
position:absolute;
left:150px;
top:10px;
z-index:1000;
}
#header #menu li {
margin-left:5px;
display:inline;
}
#header #menu li a {
color:#fff;
text-transform:uppercase;
text-decoration:none;
padding:5px 10px;
font:bold 20px "Courier New", Courier, monospace;
background:#000;
outline:none;
}
#header #menu li a.curtain-links-active, #header #menu li a:hover {
background:#c61123;
color:#fff;
}
#main {
position: relative; z-index:999;
}
.curtains{
width: 100%;
z-index:1;
position:relative;
}
.curtains>li{
background:#444;
position: fixed;
display:block;
top: 0;
left: 0;
width: 100%;
min-height: 100%;
z-index: 99999;
box-shadow: 0 1px 14px 3px #000; text-align:center;
overflow: hidden;
z-index:1;
/* -webkit-backface-visibility:hidden; */ /* Remove if you got display issues */
}
.curtains>li:first-child{z-index:2;}
#home {
background-image: url(../images/bg2.jpg);
background-position: top center;
background-size: 100% 100%;
background-repeat: no-repeat;
}
#about_us {
background-image: url(../images/bg_aboutUs.jpg);
background-position: top center;
background-size: 100%...
JavaScript
$(function(){
$('.curtains').curtain({
scrollSpeed: 500,
curtainLinks: '.curtain-links'
});
});