Skip to content

Instantly share code, notes, and snippets.

@theredstapler
Created June 24, 2016 14:19
Show Gist options
  • Save theredstapler/5a9e39dbbf141caa0aa9809fa0ad61eb to your computer and use it in GitHub Desktop.
Save theredstapler/5a9e39dbbf141caa0aa9809fa0ad61eb to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<script src="jquery-1.11.3.js"></script>
<script src="jquery.fullPage.min.js"></script>
<link rel="stylesheet" href="jquery.fullPage.css">
<style>
#navbar {
width:100%;
height:50px;
top:0 px;
position:absolute;
z-index:999;
background-color: #000;
opacity:0.8;
padding-top: 10px;
}
#navbar a {
font-family: Arial;
font-size: 32px;
padding-left: 10px;
padding-right: 10px;
color: #fff;
}
div img {
width: 1600px;
height: auto;
}
</style>
</head>
<body>
<div id="navbar">
<a href="#page1">Page 1</a>
<a href="#page2">Page 2</a>
<a href="#page3/slide3-1">Page 3</a>
<a href="#page3/slide3-2">Page 3-2</a>
<a href="#page3/slide3-3">Page 3-3</a>
<a href="#page4">Page 4</a>
</div>
<div id="wrapper">
<div class="section" data-anchor="page1"><img src="/images/1.jpg" /></div>
<div class="section" data-anchor="page2"><img src="/images/2.jpg" /></div>
<div class="section" data-anchor="page3">
<div class="slide" data-anchor="slide3-1"><img src="/images/3.jpg" /></div>
<div class="slide" data-anchor="slide3-2"><img src="/images/3-2.jpg" /></div>
<div class="slide" data-anchor="slide3-3"><img src="/images/3-3.jpg" /></div>
</div>
<div class="section" data-anchor="page4"><img src="/images/4.jpg" /></div>
</div>
<script>
$(document).ready(function(){
$('#wrapper').fullpage();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment