Center Mode Z Index
See original GitHub issuecenter mode z-indexing stays sequential
I am attempting to use center mode with a box shadow but due to the zindexing of the slides, I cannot get the center slide in-front of all slides. I am attempting to create this carousel.
====================================================================
[ paste your jsfiddle link here ]
use this jsfiddle to reproduce my bug: http://jsfiddle.net/zL17w28f/3/
====================================================================
Steps to reproduce the problem
- Set centerMode: true and slidesToShow: 3
- Add a box-shadow to .slick-slide
====================================================================
What is the expected behaviour?
That in center mode, the z-index of the center slide is the highest.
====================================================================
What is observed behaviour?
When in center mode, z index ordering stays sequential.
====================================================================
More Details
- Which browsers/versions does it happen on? doesn’t matter
- Which jQuery/Slick version are you using? https://github.com/bodrovis/jquery-slick-rails
- Did this work before? No
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top GitHub Comments
I was able to hack this with css.
I had to add improtant to get it to work. Also,
.slick-active
made multiple images larger, not just the center. I ended up using: