关于滚动fullpage 下滑问题。跳出滚动模块

目前须要知道的事 $('#fullpage').fullpage({ verticalCentered: true,//定义每一页的内容是否垂直居中,默认true resize : false,//字体是否随窗口缩放而缩放,默认false css3: true,//是否使用CSS3 transforms来实现滚动效果,默认为true paddingBottom:'-200px', responsiveHeight: 0, 'onLeave':function(index, nextIndex, direction){css

}
		  $.fn.fullpage.setAutoScrolling(false);  // 判断上下滑动问题是否实现同同样效果
		  而后返回return false 添加  $.fn.fullpage.setFitToSection(false);  // 该函数  就能够解决此问题。
 2 添加数据信息

   afterLoad : function(index, nextIndex, direction){
	      	let _index = index.index;  // _index 是数据添加的内容索引值。
	      	console.log('afterLoad'+_index);
	           
	      	 if(_index==19 && direction=='up'){
			   $.fn.fullpage.setAutoScrolling(true);
			   $.fn.fullpage.setFitToSection(true);  // 该函数
}
相关文章
相关标签/搜索