JamyGolden / PlusSlider

A very agnostic jQuery content slider/fader
http://css-plus.com/examples/plugins/PlusSlider/
MIT License
30 stars 12 forks source link

Add optional callback to the toSlide method #23

Closed bsweeney closed 10 years ago

bsweeney commented 11 years ago

I've recently found a need to perform some actions after the slider completes its animation, but only in response to calling the toSlide() method. I'd like to see an optional second argument for the toSlide() method that accepts a callack function.

So if you instantiated the slider and assigned it to the variable objSlider you could do something like the following:

objSlider.toSlide(
  'next' ,
  function ( psobj ) {
    // do something
  }
);
JamyGolden commented 10 years ago

Hi bsweeney. Very late reply, but I've added this callback to the plugin. I've done quite a few changes and updates in the last 2 weeks.

bsweeney commented 10 years ago

Nice! Thanks for the update. I won't be able to test the update in the immediate future, but I appreciate the recent work.