Gallery loop / start over from the beginning

Looking for a solution to manipulate a non-looping gallery layout to loop with the arrows.
I know there are galleries that have this feature by default but the client is set on the gallery style that doesn’t have the feature. I saw the API reference for playing the previous item but not one that pulls up the 1st slide with the click of an arrow on the last item in the gallery.

Appreciate any help.

You can try looking at Gallery and see if the gallery the client has chosen has the capabilities to do the play function.$w.Gallery.html$w.Gallery.html#galleryCapabilities

As you mention slides too, you might want to check out Slideshow too.$w.Slideshow.html

Thanks for your response. The gallery doesn’t have the function. Non of the API references I see are relevant. The closest one is the play “previous” function.