Monitoring scroll position to update element classes.
Using bower:
bower install backbone.ui.scrollchange
- Backbone
- Underscore
- jQuery (or alternative event handler)
Note that the plugin uses APP.View from Backbone APP if available, but falls back gracefully if you prefer using custom render logic.
var view = new Backbone.UI.Scrollchange({
el : "#menu"
});
view.render();
A more detailed list of all the available options.
- offset: number of pixels off the top of the screen - default: 0
- item: selector for the individual item - default: "li a"
Initiated by Makis Tracend ( @tracend )
Distributed through Makesites.org
Released under the MIT license