scrollForever
scrollForever copied to clipboard
jQuery无缝滚动插件
Results
3
scrollForever issues
Sort by
recently updated
recently updated
newest added
浏览器缩放的时候,scrollLeft+ 1会被设置成 1 * window.devicePixelRatio, 如果结果小于1就会被判定成+ 0, 所以需要保证每次变化的值大于1 const ratio = parseFloat((1 / window.devicePixelRatio).toFixed(2) ) + 0.01 // + 0.01 为了保证 ratio >= 1 dom1.scrollLeft= dom1.scrollLeft+ ratio
这个插件很棒,基本的循环滚动功能都实现了,只是缺少一些动态更新数据的接口和方法。
Hi Kujian, I am trying to scroll the text in the top direction in my live site. For few seconds it is scrolling properly after that it is getting flickering...