大家一起看看这段js代码,有引用skrollr.js,到底做了哪些事情?

https://img4.mukewang.com/5be251c70001b99808930350.jpg

一段代码

js
skrollr.js


翻过高山走不出你
浏览 438回答 1
1回答

吃鸡游戏

你去查上下文 data.curTop 和 data.lastTop 的取值然后官方文档里有描述A listener function that gets called each time right before we render everything. The function will be passed an object with the following properties:{    curTop: 10, //the current scroll top offset     lastTop: 0, //the top value of last time     maxTop: 100, //the max value you can scroll to. curTop/maxTop will give you the current progress.     direction: 'down' //either up or down}Returning false will prevent rendering.当返回 false 停止渲染
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript