I ran into this problem (animation + infinite scrolling) and could not find a good answer here on SO or anywhere else, so I did a little operation on the animsition.js source with good results.
If you look at line 66 (in the current state), you will see where the animation is attached to click links and insert animation.
$(options.linkElement).on("click." + namespace, function(event) { ... }
If we instead use a small delegation of Javascript events , then we can effectively say "bind to all anchors / links on the page now and in the future." So something like ...
$("body").on("click." + namespace, options.linkElement, function(event) { ... });
At the moment itβs just hacking my end, but Iβm going to come back later (when I'm not under the gun in the project) to make the correct fork, check, pull out the request, etc. and try going to the main project. Hope this works for you and for someone else, though now.
source share