$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
console.log(nextSlide);
});
$('.slider').bxSlider({
mode: 'vertical',
pager: false,
minSlides: 2
});
<a href="#marketWidgetmodal2" class="tooltip-window__button js-price-more">Узнать цены</a>
<!-- Окно с виджетом -->
<div style="display: none;">
<div class="form-popup" id="marketWidgetmodal2">
<div id="marketWidgetmodal"></div>
</div>
</div>
function playsl(slider, play_st, play_typ) {
if (play_st == true) {
if (play_typ == "slickNext") slider.slick("slickNext");
if (play_typ == "slickPrev") slider.slick("slickPrev");
}
}
$(".category__row")
.find(".slick-next")
.mouseenter(function () {
play_typ = "slickNext";
play_st = true;
slider = $(this).parent();
timerId = setInterval(function () {
playsl(slider, play_st, play_typ);
}, 220);
return false;
});
<script type="text/javascript">
$(document).ready(function(){
setTimeout(function(){
$('#button-main').trigger('click');
},2000);
setTimeout(function(){
$('#button-1').trigger('click');
},3000);
setTimeout(function(){
$('#button-2').trigger('click');
},4000);
setTimeout(function(){
$('#button-3').trigger('click');
},5000);
});
</script>