backbone.ui.scrollchange

Monitor scrolling to highlight elements


Install
bower install backbone.ui.scrollchange

Documentation

Backbone UI: Scrollchange

Monitoring scroll position to update element classes.

Install

Using bower:

bower install backbone.ui.scrollchange

Dependencies

Note that the plugin uses APP.View from Backbone APP if available, but falls back gracefully if you prefer using custom render logic.

Usage

var view = new Backbone.UI.Scrollchange({
        el : "#menu"
});
view.render();

Options

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"

Examples

Credits

Initiated by Makis Tracend ( @tracend )

Distributed through Makesites.org

Released under the MIT license