1
Hello! I found a slide script, and it supports to move the images vertically and horizontally. In case I put 2 buttons for the user to choose and make the change... when I click vertically or horizontally it works normal, but when one of the two is selected and switched to another, it is the 2 rotating. How do I stop when clicking on each other?
The slide site: http://idangero.us/swiper/
<li><a href="#!" id="horizontal">Horizontal</a></li>
<li><a href="#!" id="vertical">Vertical</a></li>
$("#vertical").click(function(){
var swiper = new Swiper('.swiper-container', {
direction: 'vertical',
zoom: true,
scrollbar: {
el: '.swiper-scrollbar',
hide: true,
},
});
});
$("#horizontal").click(function(){
var swiper = new Swiper('.swiper-container', {
zoom: true,
scrollbar: {
el: '.swiper-scrollbar',
hide: true,
},
});
});
Look, it worked! Thanks Mt!
– OliverDamon