Cycle; multiple speeds

Cycle; multiple speeds

The way I'm using this plugin probably isn't quite what it was designed for, but I need to be able to specify a speed for each individual slide. I can already do this for the timeouts (slide durations themselves):
  1. ...
  2. timeoutFn: calculateDuration
  3. ...
  4. var durations = [1,2,3,4,5]; 
  5. function calculateDuration(currElement, nextElement, opts, isForward) { 
  6. var index = opts.currSlide; 
  7. return durations[index] * 1000; 
  8. }
This doesn't work for speed though, there's no speedFn option like there is for timeout, and if use this same function for the speed it's only called once and just returns the first value.

I just need it exactly like the timeouts above, give it a list of seconds, and have a function to choose the right one.