60fps-scroll-element 中文文档教程

发布于 10年前 浏览 25 项目主页 更新于 3年前

60fps-scroll-element

这个库是 60fps-scroll 的 99% 做。 但是创建自己的小库有一些要点:

  1. In my case the scrolling wasn't happening on the window, because I had an absolute positioned element. So I needed to pass in the element to scroll
  2. It was on bower. I'm using webpack, where bower doesn't work great.
  3. I needed it right now. Maybe later we can merge it.

Credits

100% Credits to Ryan Seddon

License

MIT

60fps-scroll-element

This library is 99% what 60fps-scroll does. But there were some points to create an own little lib:

  1. In my case the scrolling wasn't happening on the window, because I had an absolute positioned element. So I needed to pass in the element to scroll
  2. It was on bower. I'm using webpack, where bower doesn't work great.
  3. I needed it right now. Maybe later we can merge it.

Credits

100% Credits to Ryan Seddon

License

MIT

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文