fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

Autoplay Slideshow

Open bora77 opened this issue 9 years ago • 4 comments

Hey guys, I just upgraded to fb3, but I cannot find a simple way to autoplay the images without clicking the play button...

Any ideas please? Isn't there a config option?

bora77 avatar Mar 23 '17 16:03 bora77

Hi,

There is currently no such option.

Module option naming in v3.1 will be unified and "thumbs", "fullScreen" and "slideShow" will have "autoStart" option.

fancyapps avatar Mar 27 '17 07:03 fancyapps

Ah, that would be great. I had exactly the same question. Can't wait for 3.1 ;-)

pieterratering avatar Apr 18 '17 13:04 pieterratering

$("[data-fancybox]").fancybox({
        afterLoad: function() {
            
            if (!$('.fancybox-button--play').hasClass("fancybox-button--pause")) {
                $('.fancybox-button--play').trigger('click');
            }
        }
    });

jeangontijo avatar Jun 02 '17 14:06 jeangontijo

FYI, v3.1 is now published and there is an option for that : slideShow : { autoStart : true }

fancyapps avatar Jun 08 '17 13:06 fancyapps