I have flickity slider that should looks good when page loaded. But images mashup when page loaded. only after I refresh the page once or twice it’s work smooth.
You can find the website with the unexpected behaviour here: DEMO
Code
<script type="text/javascript">
$('.main-gallery').flickity({
wrapAround: true,
freeScroll: true
});
$(window).load(function() {
$('.gallery').flickity().focus();
});
</script>
Any help would be greatly appreciated! Thanks in advance!