How to hide images until AFTER jquery flexslider finishes loading

后端 未结 6 1280
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-06 00:05

I tried to integrate wootheme\'s Flexslider on my site and it looks/works great except for when it is loading.

When you refresh the page with the slider, before flexslid

6条回答
  •  情深已故
    2021-02-06 00:53

    … i had the same problem, tried the js solution above - it worked well but then i realized when js is disabled for some reason - that nothing will be shown up, so i decided to look for a non js solution:

    i just put some thing like that for the specific slider:

    .MySlider {
      .flexslider .slides img { 
      max-height: 400px; 
      width: 940px;
     }
    }
    

    worked well, even responsive. Hope that may help!

提交回复
热议问题