This is not really simple. You'll have to do (at least) the following:
- add another value to the imagearray option with the index [4]. This will be the duration (integer)
- remove the fadeduration option
- remove this line from the plug-in
Code:
setting.fadeduration=setting.fadeduration? parseInt(setting.fadeduration) : 500
- replace the following line
Code:
.stop().css({opacity:0}).animate({opacity:1}, setting.fadeduration, function(){ //Callback function after fade animation is complete:
with
Code:
.stop().css({opacity:0}).animate({opacity:1}, setting.imagearray[imgindex][4], function(){ //Callback function after fade animation is complete: