Jquery cycle slideshow - adding slide prev/next progression (a la scrollHorz) along with custom animation?

You need to hook into to onPrevNextEvent They have something called isnext wich gets passed wich basically tells you which direction you are going in Example I updated a fiddle I whipped up yesterday for cycle jsfiddle.net/gx3YE/12 $(function() { $('#megaWrapper'). Cycle({ next : "#next", prev : "#prev", timeout : 0, onPrevNextEvent: function(is,i,el) { if (is === true) { alert('slide right'); } else { alert('slide left'); } } }) }).

You need to hook into to onPrevNextEvent. They have something called isnext wich gets passed wich basically tells you which direction you are going in. Example I updated a fiddle I whipped up yesterday for cycle.

jsfiddle.net/gx3YE/12/ $(function() { $('#megaWrapper'). Cycle({ next : "#next", prev : "#prev", timeout : 0, onPrevNextEvent: function(is,i,el) { if (is === true) { alert('slide right'); } else { alert('slide left'); } } }); }).

Thank you so much for your help! I really appreciate you taking the time to look at this. It is certainly a step in the right direction.

I'm still in need of understanding how to access the animating function from within the conditional statement - or to use information from the conditional. So, would I replace the alert in your example above with the function to animate? Or could I pass a variable to aniIn/aniOut?

I'm afraid I'm still unclear about how that would look. – Jackrabbitrocks Apr 19 at 18:44 Also, would the onPrevNextEvent work for the auto-generated pager links or just for the p/n buttons? I really wish there was some kind of documentation on this plugin.

I'm sorta surprised considering it has been out for so long. – Jackrabbitrocks Apr 19 at 18:49.

Here's how I do it: $('. Slideshow'). Cycle({ fx: 'scrollHorz', timeout: 0, next: '#next', prev: '#prev' }).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions