KevinBatdorf / liquidslider

A Responsive jQuery Content Slider
161 stars 62 forks source link

Call function in specific slide #151

Closed jagu51 closed 9 years ago

jagu51 commented 9 years ago

Hello. I need to call a function when liquidslider goes to slide 3. is it possible?

thanks!!

KevinBatdorf commented 9 years ago

You can do something like this:

pretransition: function() {
    if (this.nextPanel === 3) {
        // Do something
    }
    this.transition();
}
jagu51 commented 9 years ago

Thank you! it worked!