Tiggles ツ of Speak Creative
11/28/2018 - 5:41 PM

banner rotator slider

will take each slide and convert it to the background image

$(".section-hero .scrollable .items .item").each(function() {
                    var img = $(this).find("img");
                    if (img.length) {
                        $(this).css({
                            "background-image": "url(" + img.attr("src") + ")"
                        });
                        img.remove();
                    }
                });