require(['jquery','bxslider'],function($){
            $(document).ready(function() {
                $('.category-slides .category-slider').bxSlider({
                    auto:true,
                    touchEnabled:true,
                    oneToOneTouch:true,
                    swipeThreshold:10,
                    preventDefaultSwipeX: true,
                    maxSlides: 5,
                    slideMargin : 0,
                    moveSlides: 1,
                    minSlides: 2,
                    pager: true,
                    controls: false
                });

                slideHeight();
            });

            $(window).on('resizeEnd', function() {
                slideHeight();
            });

            function slideHeight()
            {
                if($('.category-slides .category-slider').offset()) {
                    var slideHeight = 380;
                    if($(window).width() <= 1200){
                        var percent = 380/1170 * 100;
                        slideHeight = percent * $(window).width() / 100;
                    }

                    $(".category-slides .bx-viewport").css('height',slideHeight+'px');

                    $(".category-slides .category-slider .banner-slide").each(function( index ) {
                        $(this).css('height',slideHeight+'px');
                    });
                }
            }

        });
    

        .category-slides {margin-bottom: 30px;}
        .category-slides .bx-wrapper .bx-controls .bx-pager {bottom: 4%;}
        .category-slides .bx-wrapper .bx-controls .bx-pager-item a {width: 12px; height: 12px; line-height: 12px;}
        .category-slides .banner-slide {background-size: cover; background-repeat: no-repeat; background-position: center center;}
    

19 Items

per page
Set Ascending Direction

19 Items

per page
Set Ascending Direction