What is the equivalent of $("[data-fancybox]").fancybox({ selector: '.mix:visible div', }); in Fancybox 4 ? #348
Unanswered
hugonewton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all :)
I would Fancybox to display only what is visble on screen as I have some dynamic content in my gallery. When using :
With version 3.x I was using :
$("[data-fancybox]").fancybox({ selector: '.mix:visible div', });
This allowed me to display in the lightbox only what is visible at the time.
I used the indicated method in the documentation of version 4.x :
Fancybox.bind("[data-fancybox]", { selector: '.mix:visible div', });
This does not work, is there a new method to call the selector option ? I couldn't find any information in the documentation or anywhere in the internet. Can you please indicate me how I can have fancybox only displaying elements that match ".mix:visible div"
Thanks very much in advance :)
Beta Was this translation helpful? Give feedback.
All reactions