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.
Gallery item index to navigate to.
Animation duration in milliseconds. Default: 400