//动画回调函数
**afterLoad:**function(link,index){ //到达页面的函数
if(index==1){ //判断到达的页面,index对应section
$(".onec").find("h1").fadeIn(1000); //.onec是自己取的类名
}
if(index==2){
$(".twoc").find("h1").animate({bottom:"100px"},1000)
}
},
**onLeave:**function(index,direction){ //页面离开的函数
if(index==1){
$(".onec").find("h1").fadeOut(1000);
}
if(index==2){
$(".twoc").find("h1").animate({bottom:"-100vh"},1000)
}
}
})
fullpage.js——回调函数
最新推荐文章于 2022-12-13 11:32:10 发布