views:

35

answers:

1

Hi folks, i'm using the before: option of the jQuery Cycle plugin to determine whether the user is moving to the left or right through the slideshow, and i'd like to animate accordingly (scrollLeft, scrollRight).

Unfortunately, I cannot find how to alter the plugin's options (the transition effect) while it's running.

Any ideas?

A: 

It sounds like this is the effect that you want: http://jsfiddle.net/zvVcD/

If that's the case, you just need to use the "scrollHorz" effect, and then define previous and next triggers, like so:

$('#s2').cycle({
    fx: 'scrollHorz',
    speed: 'fast',
    timeout: 0,
    next: '#next2',
    prev: '#prev2'
});
Ender
Thank you very much. This indeed solves this particular issue. But do you have any idea for a more general approach, for any other effects? For example: fade on next, slide on previous.
Mtz
Unfortunately I don't think the Cycle plugin supports what you are looking for.
Ender