Skip to content

backbone-ui/scrollchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Monitor scrolling to highlight elements

Resources

Stars

Watchers

Forks

Packages

No packages published