Referencing the current slide when using jQuery Cycle
Hello. I'm currently using the jQuery Cycle plugin to control a slideshow and am using the 'pause' option and the 'paused' and 'resumed' callbacks.
Within the callbacks, how can I reference the currently active slide?
I want to fadeIn a child element within the active slide and, when 'resumed' to triggered, fadeOut.
$j('.slideshow ul.slides').cycle({
fx: 'fade',
speed: 1000,
timeout: 5000,
pause: true,
paused: function(cont, opts, byHover) {
$j(?????????).fadeIn(600);
},
resumed: function(cont, opts, byHover) {
$j(?????????).fadeOut(400);
},
pager: '.slideshow ul.pages',
pagerAnchorBuilder: pagerFactory
});