简体   繁体   中英

jQuery Supersized Plugin callback when slideshow finishd

I am using the Supersized jQuery plugin which makes images fullscreen and also implements a slideshow. Currently, this plugin does not have a callback for when the slideshow is finished, rather, it just continually repeats.

Is there a way that I could trigger a function after the last slide is shown?

Currently, I have it working to trigger a function when the last slide STARTS to be shown, as I have a setInterval which checks for the "last" class on the slideshow images. But, this runs the function when that last slide starts, not when it is finished.

Does anyone have ideas on how I could accomplish this?

I ended up just adding a .addClass('last'); to my last image then when that was cued up, I fired my function.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM