stevenwanderski / bxslider-3

jQuery custom content slider
http://bxslider.com
448 stars 101 forks source link

Callback trigger #150

Open makingthingswork opened 12 years ago

makingthingswork commented 12 years ago

I am using a callback as the last slide in my slider contains a video and the others are only images, I want the video to auto-play when the user choses to view the last slide. It all works fine but it appears the callback function is initiated when the last slide is actioned rather than when it complete its animation.

Maybe I've misunderstood how it works but I would have expected the callback to be triggered when the last slide comes to rest.

I can put a minor delay on my video play call to solve the issue but I'd interested in an explanation so I have a better understanding of bxslider, which I have to say is an excellent plugin. Thanks

onLastSlide: function(currentSlide, totalSlides){ //code for jquery api command to play my video }

kmcguinness commented 11 years ago

Yeah good plugin, but the callbacks are all shamefully buggy.