from what i can see on Cycle2, I'm not sure it is possible to
stop the "next" slide appearing until it has loaded. I know
it does this in "auto" mode, but on the "Manual"
example, a blank image slides across and then loads. What I want to do
is show the preloader on top of the current slide, load the images
from the next slide, and *then* transition across on completion of
image loading
anybody have a solution please
I'm assuming you might be able to hook into
"cycle-before" and somehow stop the slideshow but I think
that is only to stop automatic slides.
It should return the section before the div but it doesn't seem
tofind it , however theoretically are all the sections not all siblings
ofthe same parent (in this case the body)
I had to
use$('.whatever.active').prevAll('.whatever:first'), but
Idon't know why
(I'm assuming in which case prevAll returns the siblings in
reverseorder, as it seemed to work as required.... Slightly different
examplethan above but layout the same )
Thanks
J
update... Seems to be a common misunderstanding so I thought I'd
leave my question & solution for anyone looking, as it appears
prevAll would ben be the correct approach from what else I've read.
Note the docs for prev() do say this:
"If no previous sibling exists, or if the previous sibling element
does not match a supplied selector, an empty jQuery object is
returned"
ie my div is essentially also a sibling but doesn't not match the
selector . I had wrongly assumed prev() would skip over it, and find the
first instance that did match.