Search code examples
javascriptjqueryfullscreenimage-gallerygalleria

Change first image in Galleria fullscreen theme


I need change first image in Galleria fullscreen theme (link) after Galleria.run().

For example: I need load 3rd image (sequence of images 3, 4, 5, ...., n, 1, 2, 3)

I can write:

jQuery('.galleria-image-nav-right').click().click().click()

But It ugly and not user-friendly


Solution

  • Have you tried using the show method?

    .show( index ) 
    

    returns Galleria Shows the image specified as index. You can call this method anytime and the image will be placed in a transition queue.

    http://galleria.io/docs/api/methods/