0
I’m using Flexslider, but while the images load and the function is not executed, it plays one image under the other, generating a huge scroll bar and, after the execution and loading of the images, it performs normally.
The question is: Is there any way to keep the images in the same position one below the other before they load? not to generate this huge scrollbar.
Follows code:
html:
<div class="sliderTrabalhe" ng-init="vm.sliderTrabalhe();">
<ul class="slides">
<li ng-repeat="s in vm.repeat(7) track by $index">
<div class="image" style="background-image: url('app/template/img/slider.jpg');"></div>
</li>
</ul>
</div>
Function:
vm.sliderTrabalhe = function () {
setTimeout(function () {
$('.sliderTrabalhe').flexslider({
animation: "slide",
controlNav: true
});
}, 1000);
}
CSS:
.sliderTrabalhe{
position: relative;
margin-bottom: 70px;
@extend .largura_total;
height: 500px;
.image{
height: 500px;
}
.flex-control-nav{
bottom: -30px;
left: 50px;
}
.flex-control-paging li a{
background: $cinza_escuro!important;
}
.flex-control-paging li a.flex-active{
background: $vermelho!important;
width: 15px;
height: 15px;
padding-top: 2px;
}
.flex-control-nav li {
margin: 0 3px;
}
}
Follow images for better understanding: