jQuery.appear
jQuery.appear
I've made a plugin that calls a function as an element "appears" - or in other words, as it enters the visible window through scrolling or changes to the dom.
The idea is that you can have additional content load as the user navigates the page. This can have a few effects:
- The user loads pages faster
- The user and server both save bandwidth
- The user has a better experience because he doesn't need to click a "more" link to see more content - it gets loaded to the page as soon as he's gone through the current content
I've seen this concept on a few major sites recently, including Slashdot and Bing. I wanted to include it in my site and I thought "there must be a jQuery plugin for this". There probably is, but I couldn't find it, so I made it myself.
Current version:
http://jquery-appear.googlecode.com/files/jquery.appear-1.1.1.js
Project home:
http://code.google.com/p/jquery-appear/
Examples:
http://code.google.com/p/jquery-appear/wiki/Examples
API:
http://code.google.com/p/jquery-appear/wiki/API
I would love to hear any feedback, especially if you have suggestions or you find bugs.
Thanks!