I want my jQuery Cycle 2 slideshow to show a "Loading..." pre-loader text over an image till the next one loads. I want the images to load in an asynchronous manner. Here is the code I'm using:
<figure class="cycle-slideshow manual"
data-cycle-fx="fadeout"
data-cycle-timeout=0
data-cycle-next="#next"
data-cycle-prev="#prev"
data-cycle-loader="true"
data-cycle-progressive="#read">
<img src="image1.jpg" />
</figure>
<script id="read" type="text/cycle">
[
"<img src='image1.jpg' />",
"<img src='image2.jpg' />",
"<img src='image3.jpg' />",
"<img src='image4.jpg' />",
"<img src='image5.jpg' />"
]
</script>
<section class="pagination center-text">
<a href="#"><span id="prev">« Previous</span></a> / <a href="#"><span id="next">Next »</span></a>
</section>
The slideshow I obtained from the above code is working fine. But I'm not sure how can I add a pre-loading text message to it. Please guide me what I'm missing on.
Here is a fiddle demonstrating the slideshow.