Created
April 18, 2012 14:09
-
-
Save jaromirnyklicek/2413837 to your computer and use it in GitHub Desktop.
Scrollovani
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkScroll($parent) { | |
if($parent.scrollBottom() == 300) { | |
$('#social').css(position: 'absolute'); | |
} else { | |
$('#social').css(position: 'fixed'); | |
} | |
} | |
$(document).ready(function() { | |
checkScroll($(this)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment