You need to initialize the function again when adding a dynamic element
Suggest you do it
function sliderInit(){
$('.scroll-footer').slick({
slidesToShow: 2,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
arrows: true
});
};
sliderInit();
Call the function here to load the default function and call the same function sliderInit()where you add the dynamic element.
NOTE . Remember to write this function after adding an item.
source
share