How to Setup a “revapi” variable to use the slider’s API

This article will discuss how you can adjust your slider's JavaScript settings to use the slider's API.

1. Toward the bottom of your slider's HTML markup, you'll find the slider's JavaScript settings. It will look similar to the following code:

2. Declare a variable named "revapi", and then assign it to the slider as shown in the following example.

3. Now that the "revapi" variable has been assigned to the slider, it can be used for any of the slider's API methods or events.