[jQuery] Cycle plugin: Back and forth

[jQuery] Cycle plugin: Back and forth


Hi all,
Given the following (basic!) HTML:
<div id="cyclediv">
    <img>
    <img>
    <img>
    <img>
</div>
I'd like to set up a cycle which, at the beginning, scrolls the images
off to the left:
1 <- scroll <- 2 <- scroll <- 3 <- scroll <- 4
THEN, when we reach the final image, I want to CHANGE the cycle effect
so it looks like it's running in reverse:
4 -> scroll -> 3 -> scroll -> 2 -> scroll -> 1
And then when we get back to the first image.... well, repeat the switch
so we're back to the initial left scroll again.
What would be the best way to accomplish this? I tried using scrollHorz
but it's just going in the same direction all the time.
All help appreciated. :)
Regards,
Michael Price





















    • Topic Participants

    • mike