Answer the question
In order to leave comments, you need to log in
The slider in the pop-up window works after resizing. What could be the problem?
The problem is the following: There is a pop-up, when you click on the picture, the pop-up opens, there is a slider, but the slider works only after resizing. What could be the problem?
$(".slider").slick({});
var num = 1;
$(".image").click(function(){
var src = $(this).attr('src'),
thumb = $(this).attr('data-thumb'),
num = $(this).attr('data-num');
$(`#${thumb}`).css('background-image', `url(${src})`);
$( '.slider' ).slick('slickGoTo', parseInt(num))
});
$(".blog-thumb").click(function(){
var thumbSlider = $(this).attr('data-slider');
$(`#${thumbSlider}`).fadeIn();
});
$(".to-main-button").click(function(){
$('.popup-slider').fadeOut();
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question