0

jQuery(document).on('click', '.auto_portfolio .et_pb_portfolio_item', function(e) {
    e.preventDefault();
    get_id = jQuery(this).attr('id');
    var slide_id = jQuery('.owl-item[slide-target="'+get_id+'"]').prevAll('.owl-item');
 var numPrevElements = slide_id.length;
 jQuery('#sync1').trigger('to.owl.carousel',[numPrevElements, 300, true]);
 jQuery('div#sync1').slideDown().addClass('visible');
    //console.log(get_id);
    document.querySelector('#sync1').scrollIntoView({
            behavior: 'smooth'
        });
    //jQuery('.new-landing .menu').toggleClass('show');
});

Jagdish Sarma Asked question May 3, 2022
Add a Comment