Skip to content

Instantly share code, notes, and snippets.

@dennis-kurochkin
Created June 23, 2019 10:48
Show Gist options
  • Select an option

  • Save dennis-kurochkin/ceafea9d30a17ac50ba0f0151c54e6a4 to your computer and use it in GitHub Desktop.

Select an option

Save dennis-kurochkin/ceafea9d30a17ac50ba0f0151c54e6a4 to your computer and use it in GitHub Desktop.
Slick Slider Same Height Slides
$('.js-slider').slick({
...
rows: 0
})
.on('setPosition', function (event, slick) {
slick.$slides.css('height', slick.$slideTrack.height() + 'px');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment