-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (78 loc) · 2.71 KB
/
index.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SideNavi</title>
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//code.jquery.com">
<link href="src/css/googleRobotFont.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="dest/scss/sideNavi.css">
<link rel="stylesheet" href="dest/scss/app.css">
<link rel="stylesheet" href="src/css/animate.css">
<link rel="stylesheet" href="node_modules/fullpage.js/dist/jquery.fullpage.min.css">
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/gsap/src/minified/TweenMax.min.js"></script>
<script src="node_modules/fullpage.js/dist/jquery.fullpage.min.js"></script>
<script src="src/js/SideNav.js"></script>
</head>
<body>
<section class="km-side-navi" id="exampleSide"></section>
<div id="fullpage">
<div class="section">
<div class="m-inner-wrap">
<h2>Animate</h2>
</div>
</div>
<div class="section">
<div class="m-inner-wrap">
<h2>Nice</h2>
</div>
</div>
<div class="section">
<div class="m-inner-wrap">
<h2>Customize</h2>
</div>
</div>
<div class="section">
<div class="m-inner-wrap">
<h2>Friendly</h2>
</div>
</div>
</div>
</body>
<script>
$(document).ready(function() {
var options = {
menu : ['Animate','Nice','Customize','Friendly'],
position : 'right',
themeColor : '#1ed1dc',
id : 'exampleSide',
afterInit : function(){
var currentIndex = parseInt($('#fullpage').find('.fp-section.active').attr('data-anchor'));
sidenav.activeMenuAndTag(currentIndex);
}
}
var sidenav = new SideNavi(options);
$('#fullpage').fullpage({
sectionsColor: ['#f5f7f9', '#eeefff', '#fff', '#eee'],
anchors: ['1', '2', '3', '4', '5'],
onLeave: function(index,nextIndex){
sidenav.activeMenuAndTag(nextIndex);
},
afterLoad:function(index){
var loadedSection = $(this);
switch(index){
case 1 : loadedSection.find('h2').addClass('animated fadeInUp');
break;
case 2 : loadedSection.find('h2').addClass('animated rotateIn');
break;
case 3 : loadedSection.find('h2').addClass('animated rotateInDownLeft');
break;
case 4 : loadedSection.find('h2').addClass('animated rotateInUpRight');
break;
}
}
});
});
</script>
</html>