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 + 350 ) { |
$sidebar.stop().animate({ | $sidebar.stop().animate({ | ||
marginTop: $window1.scrollTop() - (offset.top + topPadding + 230 ) | marginTop: $window1.scrollTop() - (offset.top + topPadding + 230 ) |
Revision as of 11:04, 31 August 2012