Why Slick Slider trims the height of the active slide when centerMode?

Good afternoon, colleagues.
Did someone with such a problem.
There is a Slick slider with a set he centerMode.
Active slide should be more "ordinary". Why use transform: scale(1.5);

Active slide zarekaysya height.
The height of the slider measured from incomprehensible to me value.

Please help to resolve the problem.


It should be like this

It turns out
June 7th 19 at 14:45
2 answers
June 7th 19 at 14:47
Slick considers the height given the scale and on the block .slick-list hanging overflow: hidden which cuts off the height.
It is possible to .slick-slide to add padding-top and padding-bottom to the height of each slide was equal to the desired height of the center of the slide with the enlarged image, then scale the picture after take the free space
June 7th 19 at 14:49

This value is calculated from the height of the centered slider:

<div class="slick-slide slick-current slick-active slick-center" data-slick-index="0" aria-hidden="false" style="width: 573px;" tabindex="-1" role="option" aria-describedby="slick-slide00"><img src="https://pp.userapi.com/c837322/v837322210/33ccb/saIIiGQzX7g.jpg" alt></div>

Find more questions by tags JavaScriptSliderSlick