The essence of the issue is to make a visual design for downloading new content. Like for example on Yandex mail in the mobile version, if you scroll the page up it leaves the header (preloader) from under the header and disappears after a second.
<div id="header"> menu </div> <div class="ploader"> Загрузка </div> The main thing is that the picture is not shown when loading a new page, but only if you scroll the page down a bit and to the top.
Need to add the animateClass class to the ploader class when scrolling to the very top?
Here is an example http://codepen.io/stopani/pen/GobYNK
In the example, the class is added when scrolling from any position, but only when you scroll to the very beginning of the page?