Working on a slider (flexslider) with a zoom effect (elevatezoom); the slider uses thumbnails as a nav for the slider. The issue is is with the display of the zoom lens.
It took me awhile to narrow down the issue: the zoom lens displays properly if the flexslider animation is set to "slide", but remains hidden behind the image if the animation is set to "fade".
I've tried a bunch of different z-index tests, even changing the z-index code in the elevatezoom files for the active image, but then the wrong image displays.
I found a codepen and forked it to show the issue - https://codepen.io/anon/pen/jpdOop
Right now the animation for #slider is set for slide and the zoom lens is visible. But if animation is not indicated or is set to "fade", the zoom lens disappears behind the image.
Is there something besides z-index that could cause this? Any ideas about where to look and I'm happy to run those down, just out of ideas as to the cause.
Thanks
HTML
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="flexslider" id="slider">
<ul class="slides">
<li>
<img class="zoom" src="http://placehold.it/350x200/A93226/ffffff" data-zoom-image="http://placehold.it/1901x600/A93226/ffffff">
</li>
<li>
<img class="zoom" src="http://placehold.it/350x200/2980B9/ffffff" data-zoom-image="http://placehold.it/1902x600/2980B9/ffffff">
</li>
<li>
<img class="zoom" src="http://placehold.it/350x200/17A589/ffffff" data-zoom-image="http://placehold.it/1903x600/17A589/ffffff">
</li>
<li>
<img class="zoom" src="http://placehold.it/350x200/F1C40F/ffffff" data-zoom-image="http://placehold.it/1904x600/F1C40F/ffffff">
</li>
<li>
<img class="zoom" src="http://placehold.it/350x200/6C3483/ffffff" data-zoom-image="http://placehold.it/1904x600/6C3483/ffffff">
</li>
</ul>
</div>
<div id="carousel" class="flexslider">
<ul class="slides">
<li>
<img src="http://placehold.it/350x150/A93226/ffffff">
</li>
<li>
<img src="http://placehold.it/350x150/2980B9/ffffff">
</li>
<li>
<img src="http://placehold.it/350x150/17A589/ffffff">
</li>
<li>
<img src="http://placehold.it/350x150/F1C40F/ffffff">
</li>
<li>
<img src="http://placehold.it/350x150/6C3483/ffffff">
</li>
</ul>
</div>
</div>
</div>
</div>
CSS
.flexslider {
margin-bottom: 0 !important;
}
.slider-for div img {
width: 350px;
height: 150px;
}
.slider-nav {
margin-top: 10px;
}
.slider-nav div img {
width: 80%;
height: 50px;
}
.slick-slide {
outline: 0;
}
.flex-direction-nav a:before {
font-size: 30px;
}
#slider ul.flex-direction-nav li a {
display: none !important;
}
JS
$('#carousel').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
itemWidth: 135,
itemMargin: 5,
asNavFor: '#slider',
});
$('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: false,
sync: "#carousel"
});
$(".zoom").elevateZoom();