Slick carousel loads the wrong width on initialization

孤者浪人 提交于 2019-12-22 05:14:34

问题


On page load, for the first second of so, the first slide only takes up half of the screen before correcting itself. It is causing an unpleasant/snappy load experience. If I monitor the elements code via inspect I can see the inline width get updated about a second into page load. Any suggestions?


回答1:


i have same problem solution is start from prev slide (initialSlide: ...) and call slick('slickNext')



来源:https://stackoverflow.com/questions/36944421/slick-carousel-loads-the-wrong-width-on-initialization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!