Skip to content

Instantly share code, notes, and snippets.

@tjstalcup
Created April 10, 2014 17:55
Show Gist options
  • Save tjstalcup/10406880 to your computer and use it in GitHub Desktop.
Save tjstalcup/10406880 to your computer and use it in GitHub Desktop.
Controlling the GuideBar's top property
$(window).scroll(function() {
if ($(document).scrollTop() > 627) {
$('#guideBar').css('top','40px');
} else {
var scroll = 667 - $(document).scrollTop();
$('#guideBar').css('top',scroll+'px');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment