Created
June 23, 2019 10:48
-
-
Save dennis-kurochkin/ceafea9d30a17ac50ba0f0151c54e6a4 to your computer and use it in GitHub Desktop.
Slick Slider Same Height Slides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.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