开发者

jQuery scrollIntent, similar to hoverIntent

I am looking for a function similar to hoverIntent, but for scrolling. I have a function that moves the sidebar to stay put while scrolling. They thing is, the moving/calculations take place really close together, causing the "always visible" box to flicker开发者_如何学Python while scrolling. I am looking an invent that fires only when it is very likely that the user is trying to scroll to that position. Then, I will do some fancy easing effect rather than a simply css property change.


Chris Coyier has a great tutorial/freebie on how to do this over at CSS Tricks: http://css-tricks.com/scrollfollow-sidebar/

You can see a demo of his approach.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜