I
I
Irek Sitdikov2015-04-09 21:10:15
JavaScript
Irek Sitdikov, 2015-04-09 21:10:15

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

1 answer(s)
Y
Yaroslav IKARUS, 2015-04-27
@yar-ikarus

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 question

Ask a Question

731 491 924 answers to any question