Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

animation speed #148

Closed
wants to merge 2 commits into from

2 participants

@kkamkou

Hello Paul, please review. Customer doesn't like animation at all.

@67726e 67726e closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 16, 2012
  1. @kkamkou
  2. @kkamkou

    the done message animation

    kkamkou authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 8 deletions.
  1. +10 −8 jquery.infinitescroll.js
View
18 jquery.infinitescroll.js
@@ -156,7 +156,7 @@
// determine loading.finished actions
opts.loading.finished = opts.loading.finished || function() {
- opts.loading.msg.fadeOut('normal');
+ opts.loading.msg.fadeOut(opts.loading.speed);
};
// callback loading
@@ -422,13 +422,15 @@
return;
}
- opts.loading.msg
- .find('img')
- .hide()
- .parent()
- .find('div').html(opts.loading.finishedMsg).animate({ opacity: 1 }, 2000, function () {
- $(this).parent().fadeOut('normal');
- });
+ if (opts.loading.finishedMsg) {
+ opts.loading.msg
+ .find('img').hide().parent().find('div')
+ .html(opts.loading.finishedMsg).animate({ opacity: 1 }, 2000, function () {
+ $(this).parent().fadeOut(opts.loading.speed);
+ });
+ } else {
+ opts.loading.msg.fadeOut(opts.loading.speed);
+ }
// user provided callback when done
opts.errorCallback.call($(opts.contentSelector)[0],'done');
Something went wrong with that request. Please try again.