Answer the question
In order to leave comments, you need to log in
How to group images in fancybox?
I call fancybox in a not quite standard way:
$('a.fancybox').fancybox.on('click', function(){
var type = ($(this).data('type')) ? $(this).data('type') : 'image';
$.fancybox({
href: this.href,
type: type
});
return false;
});
Answer the question
In order to leave comments, you need to log in
Why such perversion? What's wrong with the standard method?
In general, for grouping, it rel="group"
should be registered there at the links to the pictures. Is he there?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question