navigateToIndex( )


Navigates to a specific gallery item index.

The navigateToIndex() function navigates to the specified item's index.

Use the animationDuration parameter to set the speed of slide transitions during navigation.

Note: This method isn't supported for Pro Gallery elements.

Method Declaration
Copy
Method Parameters
indexnumberRequired

Gallery item index to navigate to.


animationDurationnumber

Animation duration in milliseconds. Default: 400

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?