resetting bxSlider

前端 未结 9 1642
滥情空心
滥情空心 2021-01-06 06:45

I took a different direction with a carousel I implemented, opting for bxSlider instead of jCarousel. This is for an image gallery I am building http://rjwcollective.com/equ

9条回答
  •  滥情空心
    2021-01-06 07:26

    the reloadShow funciton execute to function

    destoryShow and initShow

    destroyShow function delete all style and wrapper which is working fine in horizontal mode but in vertical and fade mode it also delete the content of slider

    try replace condition with switch

    // unwrap all bx-wrappers
    // remove any styles that were appended
    
    if(options.mode == 'fade' || options.mode == 'verticel'){
    $parent.unwrap().unwrap();
    $parent.children().removeAttr('style');
    }else{
        $parent.unwrap().unwrap().removeAttr('style');
        $parent.children().removeAttr('style').not('.pager').remove();
    }
    

    hope this helps

提交回复
热议问题