"Header Curtain Effect"
Bootstrap 3.2.0 Snippet by bryanrojasq

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#page-top">Start Bootstrap</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
<a href="#page-top"></a>
</li>
<li class="page-scroll">
<a href="#portfolio">Portfolio</a>
</li>
<li class="page-scroll">
<a href="#about">About</a>
</li>
<li class="page-scroll">
<a href="#contact">Contact</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url("http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css");
/* HERE STARTS THE MAGIC */
header {
text-align: center;
color: #fff;
background: #18bc9c;
position: fixed;
width:100%;
z-index: 1;
height: 88%;
overflow: hidden;
top: 0;
left: 0;
}
.content-wrapper{
background-color: white;
top: 87%;
min-height: 12%;
position:absolute;
z-index: 2;
width: 100%;
}
/* HERE ENDS THE MAGIC */
header .container {
padding-top: 150px;
padding-bottom: 50px;
}
header img {
display: block;
margin: 0 auto 20px;
}
header .intro-text .name {
display: block;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

This template is copied by there http://startbootstrap.com/t...

Daniel () - 9 years ago - Reply 0


who cares? he's showing an effect with a demo... would you prefer a blank white and black design demo?

Michael Dance () - 9 years ago - Reply 0


Kinda does matter,copyright and all...

Xevion () - 9 years ago - Reply 0


@disqus_cJ9pgED6bD:disqus don't worry, Start Bootstrap uses a lot of snippets from Bootsnipp and we have worked out a partnership.

maxsurguy () - 9 years ago - Reply 0


Thank you for your support. I didn't mean to steal anything, is just for practical purpose.

Bryan () - 9 years ago - Reply 0


I dunno,would this mean that using this script would mean no copyright laws would be broken if someone like me used it,not a single law (aslong as the video and pictures other than the script are stock and no copyright laws on there terms are broken)?

Xevion () - 9 years ago - Reply 0


You can check out the original theme here: http://startbootstrap.com/t...

maxsurguy () - 9 years ago - Reply 0


*Facepalm* Do I look like I didn't know where that was? Daniel at the top shared the link already,he is in the conversation ffs.

Xevion () - 9 years ago - Reply 0