I have a website that is 1 page and has several sections, each of which contains DIV and flexslider content. On the big screens, it seems like a strange error, due to which the backgrounds flicker with the animation of the slides: here http://yyy.comuf.com/PORT/ p>
I think this is because there are several flexsliders on the page, but are not sure how to fix it.
Js
$(window).load(function() { $('#main-slider').flexslider({ animation: 'slide', controlsContainer: '.flex-container' }); $('#secondary-slider').flexslider();
});
HTML SLIDER-1
<div id="main-slider" class="flexslider"> <ul class="slides"> <li> <img src="img/FP1.png" /> </li> <li> <img src="img/abcd.png" /> </li> <li> <img src="img/i-eg.png" /> </li> </ul> </div>
HTML SLIDER-2
<div id="secondary-slider" class="flexslider"> <ul class="slides"> <li> <img src="img/OU.png" /> </li> <li> <img src="img/OU1.png" /> </li> <li> <img src="img/OU2.png" /> </li> </ul> </div>
Both sliders are currently the same, except for different images.
The main JS file is here: http://yyy.comuf.com/PORT/js/jquery.flexslider.js
source share