API

Slider Revolution API

Extend the slider’s functionality with API methods and events.

Extend the slider’s functionality with API methods and events.  All of the available methods and events are listed in this section of the slider’s settings, and can be copied and pasted directly from this section into the slider’s Custom JavaScript section.

Each slider will have its own unique API variable which is based on the slider’s ID.  In the screenshot to the right, the API variable is “revapi5”, but this will vary depending on your particular slider.

Hover your mouse over each code sample for brief explanations of each method or event.

The following is a quick sample of using the slider’s API, where we’ll pause the slider when the second to last slide is shown.