jquery-backstretch / jquery-backstretch

Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
http://www.jquery-backstretch.com
MIT License
3.91k stars 908 forks source link

change slideshows #271

Open crisbaret opened 11 years ago

crisbaret commented 11 years ago

I'm trying to switch between different galleries, but when I change during the transition period the galleries mixed up: both galleries continue slide with their own time. I tried to destroy backstretch and it does the job if I don't preserve the background. If I set "preservebackground" to "true" it seems that the preserved background continue its slideshow. When I call the instance images I see that they are the new images, but the old images continue to slide... The code generated shows two images with class "deleteable".

daseeds commented 10 years ago

Got exactly the same problem. Got an ember based application; and depending on the route i'm changing the background slideshow. I destroy the instance everytime before transition. At the beginning it works well but after a while I can see that several backstretch are still working in parallel, as if they were zombie thread of backstretch...