Saturday 15 August 2015

target a slide with jquery cycle 2 plugin with callback -


I am using the following callback event with jquery cycle 2 plugin, what does this currently . Watch 1 After the slideshow the transition to the next slide is complete. But how can I target a specific slide, so that slide 1 can only fade in after the transition is completed? $ ('.cycle-slideshow') .on ('cycle-after' function (Event, Option hash, OutgoingSlide EL, incomingSlide EL, Forward Flagged) {$ ('watch1' ) .Fedine (2000);

});

Thank you!

You need to bind a variable for your slide like this:

Pre> $ ('cycle-slideshow'). ('Cycle-after', function (e, option hash, outgoing slidesl, incoming slide EL, forward flag) {var active = $ (incoming slider EL) if (active.is ('# slide1')) {$ ('Watch. 1 '). Fade In (2000);}});

This means that after slide 1 is animated, your Watch 1 element will be erased. I believe this is what you need to do.

No comments:

Post a Comment