Morgan Cheng![]()
Provides synthetic event to detect when beacon element turns into browser viewport, so as to implement endless scroll and sticky nodes.
Demo page: http://mocheng.github.com/gallery/scroll-beacon/scroll_beacon.html
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.02.01-21-35'
}).use('gallery-scroll-beacon', 'node', function(Y) {
Y.one('#beacon').on('beacon:reached', function(ev) {
// the element with id 'beacon' is in viewport.
});
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info