R
R
rinatoptimus2017-05-13 20:12:37
JavaScript
rinatoptimus, 2017-05-13 20:12:37

Why doesn't Slick slider work with Fancybox?

I tried to connect Slick slider with Fancybox (Fancybox is already used on the project, so I did not drag another plugin). The result does not work correctly: when a popup appears, some empty space appears in the slider. I can not make out the reason, there are no errors in the console. Maybe there is a similar example, I couldn't find it anywhere.
Fancybox code:

$('.js-fancybox').fancybox({
         openEffect  : 'none',
         closeEffect : 'none',
         prevEffect : 'none',
         nextEffect : 'none',
         closeBtn  : true,
         arrows    : false,
         nextClick : false,
         helpers : {
          title : {
           type : 'inside'
          },
          buttons : {},
          thumbs : {
           width : 50,
           height : 50
          }
         },
         afterLoad : function() {
          this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
         }
      });

Fiddle .

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question