Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slick Lightbox shows first image after carousel cycle through #92

Open
jonhicksdesign opened this issue Jan 31, 2021 · 1 comment
Open

Comments

@jonhicksdesign
Copy link

jonhicksdesign commented Jan 31, 2021

I have a problem with the Slick Lightbox. I'm using Slick Slider on variable width and infinite scroll and when it loops through once and the first image is shown again the Lightbox shows the first image for everything to the right of it. But the images to the left show the correct image in Lightbox. Below is my script.js code

$(document).ready(function(){
$('.slider-area').slick({
dots: false,
accessibility: true,
arrows: true,
infinite: true,
speed: 1500,
centerMode: false,
slidesToShow: 10,
slidesToScroll: 7,
variableWidth: true,
touchMove: true,
useCSS: true,
cssEase: 'ease'
});
});

$(document).on('ready', function() {
$('.slider-area').slickLightbox({
src: 'src',
itemSelector: '.pic img',

});

});

@BlackKiwi89
Copy link

@jonhicksdesign have you found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants