elevateweb / elevatezoom

1.03k stars 492 forks source link

Integration with Swiper #135

Open serrazina opened 8 years ago

serrazina commented 8 years ago

Anyone can help to use elevatezoom with swiper (http://idangero.us/swiper/)

I just need to swap the zoomContainer to the active slide.

rahilbhansali commented 8 years ago

I am in the process of doing so. What's the issue you are facing? If you just use the code:

<div class="swiper-slide"> <a id="img-thumbnail-link-<?= $i;?>" href="#" data-image="img.jpg" data-zoom-image="img1.jpg"> <img src="img.jpg" alt=""> // Your image here </a> </div>

The anchor tag handles it directly as long as elevate zoom has been initialized.