While using the Infinite Scroll jQuery Plugin by Paul Irish, I have observed that every time new content is loaded onto the page, a loading graphic in the form of HTML markup is appended into the DOM:
<div id="infscr-loading" style="display: none; width: 100%;">
<img alt="Loading..." src="loading.gif" />
<div></div>
</div>
Upon closer observation, I noticed that as the loading graphic is removed and then reinserted during the content loading process, it seems to animate from the left side to the center of the page. How can I prevent this unintended "animation"? It appears to be happening due to the markup being detached and reinserted, but I'm not entirely sure if this is the intended behavior.
Is there a way to ensure that the loading graphic always stays centered without any animation effect?
For reference, you can find the script at this link: https://github.com/paulirish/infinite-scroll/blob/master/jquery.infinitescroll.js
I have not come across any CSS or JavaScript code causing this animation effect.