Home>

Now I have from 4 buttons displayed -three

We are talking about the second icon (auto), click on it -pictures themselves scold I use> https://www.lightgalleryjs.com/demos/thumbnails/

window.lightgallery (
          Document.getelementByid ("thumbnails-gallery"),
          {
            AutoplayFirStVideo: False,
            AutoPlay: True,
            AutoplayControls: True,
            Counter: False,
            Plugins: [LGZOOM, LGTHUMBNAIL],
            Download: True,
            Controls: True,
           /* MobileSettings: {
              CONTROLS: FALSE,
              ShowCloseicon: false,
              Download: False,
              Rotate: False.
            } * /
          }
        ); 
  • Answer # 1
    1. Connect the AutoPlay plugin files



    2. in the config register the name of the plugin LGAUTOPLAY. In array Plugins. .


    window.lightgallery (
      Document.getelementByid ("Thumbnails-Gallery"), {
        AutoplayFirStVideo: False,
        AutoPlay: True,
        AutoplayControls: True,
        Counter: False,
        Plugins: [LGZOOM, LGTHUMBNAIL, LGAUTOPLAY], //<
    -here
        Download: True,
        Controls: True,
        /* MobileSettings: {
           CONTROLS: FALSE,
           ShowCloseicon: false,
           Download: False,
           Rotate: False.
         } * /
      }
    );
    

    AutoPlay: True and AutoplaYcontrols: True. In the config, you can not prescribe, these default settings are included.

    thanks a lot

    Fozzy2021-05-26 16:40:14
  • Answer # 2
    1. Connect the AutoPlay plugin files



    2. in the config register the name of the plugin LGAUTOPLAY. In array Plugins. .


    window.lightgallery (
      Document.getelementByid ("Thumbnails-Gallery"), {
        AutoplayFirStVideo: False,
        AutoPlay: True,
        AutoplayControls: True,
        Counter: False,
        Plugins: [LGZOOM, LGTHUMBNAIL, LGAUTOPLAY], //<
    -here
        Download: True,
        Controls: True,
        /* MobileSettings: {
           CONTROLS: FALSE,
           ShowCloseicon: false,
           Download: False,
           Rotate: False.
         } * /
      }
    );
    

    AutoPlay: True and AutoplaYcontrols: True. In the config, you can not prescribe, these default settings are included.

    thanks a lot

    Fozzy2021-05-26 16:40:14