Im trying to add a loading now gif to my cycle 2 plugin. How do i force the gif to load before the images load?
Currently i have my loading.gif as a background image. Problem is the loading.gif isn't loading first
Have a look at the Cycle2 API page , the loader
option and the associated demo . In summary:
data-cycle-loader="wait"
on the slideshow div. This pauses the slideshow until all images are loaded. .cycle-slideshow {
background: url(http://malsup.github.com/images/spinner.gif) 50% 50% no-repeat;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.