How to use *selector* option with fancybox v4.x ? #341
hugonewton
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want Fancybox to display only what is visble on screen as I have some dynamic content in my gallery.
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