API Methods

All of the slider’s API methods and events that can be listened for are listed in the “API Functions” section of your slider’s main settings page:

 

Each code example starts with a “revapi(id)”, which represents the instantiated slider Object in JavaScript. This variable is declared in the inline JavaScript, written below the slider’s HTML output markup. So keep that in mind if you plan to use the slider’s API in external JavaScript (i.e. external script using the API will need to be executed after the “revapi” variable is declared).

Click here for a simple example that uses the API.