Flexslider
  • height's equal the tallest
  • on a mobile browser
  • 前端 未结 5 964
    青春惊慌失措
    青春惊慌失措 2020-12-21 10:57

    I am trying to figure out an issue with Flexslider that only appears when I test it on an mobile browser such as Safari Mobile.

    All of the

  • containers are the
  • 5条回答
    •  野趣味
      野趣味 (楼主)
      2020-12-21 11:07

      For anyone still has this issue in 2019/2020, please have a look at the new property called "smoothHeight" at the Flexslider docs

      I fixed my issue by setting "smoothHeight" to true.

      $('.sliders').flexslider({
          animation: 'slide',
          smoothHeight: true,
          controlNav: false,
          customDirectionNav: $('.js-slider-control button'),
      });
      

    提交回复
    热议问题