Skip to content

Commit

Permalink
SAK-32310 Animate subsites menu when scrolling. (sakaiproject#4060)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMiller-Which authored and ern committed Mar 13, 2017
1 parent f43e1d8 commit 41c49de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ function animateToolBar() {
var follow = ($window.height()- (padding + topPad)) > $tools.height();
if($("#toolMenuWrap").css('position') !== 'fixed'
&& follow && $window.scrollTop() > 0) {
$("#toolMenu").stop().animate({
$("#toolMenu,#subSites").stop().animate({
top: $window.scrollTop() + topPad
});
} else {
$("#toolMenu").stop().animate({
$("#toolMenu,#subSites").stop().animate({
top: 0
});
}
Expand Down

0 comments on commit 41c49de

Please sign in to comment.