Team:SDU-Denmark/Media/photogallery
From 2012.igem.org
(Difference between revisions)
Line 62: | Line 62: | ||
$window1.scroll(function() { | $window1.scroll(function() { | ||
- | if ($window1.scrollTop() > offset.top + | + | if ($window1.scrollTop() > offset.top + 30 ) { |
$sidebar.stop().animate({ | $sidebar.stop().animate({ | ||
marginTop: $window1.scrollTop() - (offset.top + topPadding - 20 ) | marginTop: $window1.scrollTop() - (offset.top + topPadding - 20 ) |
Revision as of 11:10, 31 August 2012