您的位置:首页 > Web前端 > JavaScript

flexslider.js和waypoints.js一起用时的巨坑

2016-05-11 15:03 141 查看
Flexslider has a callback API where you can execute functions after various actions:https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties

I would check out the after callback and possibly the start callback and call refresh from there. For example:

$('#secondSlider').flexslider({

animation: "slide",

directionNav: false,

controlNav: false,

start: function() {

$.waypoints('refresh');

}

});

$.waypoints('refresh');必须加
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: