biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

Can't set slideEffect - it's always sliding #462

Closed kratos-digital closed 7 months ago

kratos-digital commented 7 months ago

Describe the bug I want to set slide effect to fade, instead of slide, but it is always sliding, no matter what I set as option.

Are you able to reproduce the bug in the demo site No.

To Reproduce Steps to reproduce the behavior: Set slideEffect option to "fade", "none", ... it will always slide.

Expected behavior Fade instead of slide when navigating through gallery.

Post the code you are using

import GLightbox from "glightbox";
import "glightbox/dist/css/glightbox.min.css";

GLightbox({
    selector: ".gallery",
    openEffect: "fade",
    closeEffect: "fade",
    slideEffect: "fade",
});

Screenshots None.

Desktop:

kratos-digital commented 7 months ago

It works now, I didn't change anything.. Weird..