Skip to content

Commit

Permalink
Refactored the refreshing animation, still need to tweak further.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 11, 2010
1 parent 9f41f7d commit 5e4af39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/javascripts/autoScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ $.fn.autoScroller = function(options) {

if ($innerUnorderedList.scrollTop() == previousOffset && 0 !== previousOffset) {
$innerUnorderedList
.animate({opacity: 0}, function() {
$(this).scrollTop(0).animate({opacity: 1}, 300);
});
.animate({opacity: 0, scrollTop: 0}, 3)
.animate({opacity: 1}, 3);
}
previousOffset = $innerUnorderedList.scrollTop();
}
Expand Down

0 comments on commit 5e4af39

Please sign in to comment.