"Section Scroller"
Bootstrap 3.0.0 Snippet by ALIMUL AL RAZY

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
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ---------->
<script src="https://www.jqueryscript.net/demo/One-Page-Scroll-Nav-Button-jQuery-Section-Scroller/sectionScroller.min.js"></script>
<div class="container">
<div class="row">
<div class="full-height section-scroll" id="section-1">
<div class="content-wrapper">
<h1 class="display-2">Section Scroller</h1>
<h2 class="fw-400" style="margin-bottom: 54px;">A jQuery plugin for One Page Scroll Nav Button.</h2></div>
</div>
<div class="full-height section-scroll" id="section-2">
<div class="content-wrapper">
<h2 class="display-2" style="margin-bottom: 48px;">Second Section</h2>
</div>
</div>
<div class="full-height section-scroll" id="section-3">
<div class="content-wrapper">
<h2 class="display-4" style="margin-bottom: 48px;">Third Section</h2>
</div>
</div>
<div class="full-height section-scroll" id="section-4">
<div class="content-wrapper">
<h2 class="display-2" style="margin-bottom: 36px;">Last Section</h2>
</div>
</div>
<div class="tooltip"> Click for scrolling to next section </div>
<!-- scroller button -->
<div id="section-scroller-button"> <i class="caret"></i> </div>
</div>
</div>
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
html, body {
height: 100%;
margin: 0;
}
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1rem;
font-weight: normal;
line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
.lead {
font-size: 1.25rem;
font-weight: 300;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$(function() { // dom ready
$(".section-scroll").sectionScroller({
scrollerButton: "#section-scroller-button",
scrollType: "swing",
scrollDuration: 900,
});
// for the tooltip
var $tooltip = $(".tooltip");
setTimeout(function() {
$tooltip.css("opacity", "1");
$("#section-scroller-button").one("click", function() {
$tooltip.hide();
})
}, 500);
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: