AUI().ready( function() { $(document).ready(function(){ $(".slider-mobile-full").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 5000, autoplayHoverPause: true, items: 1, startPosition: 1 }); var bgs = document.querySelectorAll('.slider-mobile-full .owl-item .item-carousel'); bgs.forEach(function(bg){ var bg1 = bg.style.backgroundImage; var bg2 = bg1.split('("'); var bg3 = bg2[1].split('")'); var imageURL = bg3[0]; var downloadingImage = new Image(); downloadingImage.onload = function(){ bg.style.backgroundImage = 'url('+ this.src +')'; var overlay = bg.querySelector('#overlay'); overlay.style.opacity = 0; }; downloadingImage.src = imageURL; }); }); } );

Para sua empresa