javascript - Is it possible to change the fx between transitions? -
i'm using jquery plugin cycle2 (http://jquery.malsup.com/cycle2/) cycle through displaying images on site.
i'd alter transition fx (fade, scrollhorz etc) between transitions
i thought attaching handler 'cycle-after' event:
$('#myelement').on('cycle-after', function(event, optionhash, outgoingslideel, incomingslideel, forwardflag) { console.log('was ' + optionhash.fx); // "was fade" optionhash.fx = 'scrollhorz'; console.log('now ' + optionhash.fx); // "now scrollhorz" });
but changing value in optionhash has no effect - fx stays "fade".
javascript jquery jquery-cycle2
No comments:
Post a Comment