Skip to content

Instantly share code, notes, and snippets.

@ezos86
Created December 22, 2014 06:04
Show Gist options
  • Save ezos86/370a227dca933d310d53 to your computer and use it in GitHub Desktop.
Save ezos86/370a227dca933d310d53 to your computer and use it in GitHub Desktop.
Waypoints Example
<section id="sec-1"></section>
<nav></nav>
<section id="sec-1"></section>
$(function() { // When the page has loaded,
$('nav').waypoint( // create a waypoint
function() {
alert("Waypoint reached.");
}
)
});
#sec-1{
height:1000px;
background-color:#f1f1f1;
}
nav{
background-color:red;
height:30px;
width:100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment