Skip to content

Instantly share code, notes, and snippets.

View JulienMelissas's full-sized avatar
🎯

Julien Melissas JulienMelissas

🎯
View GitHub Profile
@JulienMelissas
JulienMelissas / jQuery scroll_pos
Last active December 30, 2015 15:19
Just a simple jQuery snippet I made right quick to output the current scroll position of the window in the console. Helpful when working on badass parallax sites and working with libraries like Skrollr and the like.
// Log Current Scroll Position
$(window).scroll(function() {
var scroll_pos = $(window).scrollTop();
console.log(scroll_pos);
});