A simple extension to create an Instagram style sticky header.
- Flexible markup structure
Using bower:
bower install backbone.ui.sticky-header
Load the css and js in your app. Then load the view on the appropriete container:
var view = new Backbone.UI.StickyHeader({
el : '.ui-sticky-header'
});
- itemEl (default: ".item header") the DOM selector for the header elements
- offset (default: 0) The offset for calculating the effect. Used when there is visible content above the collection.
Initiated by Lyndel Thomas ( @ryndel )
Inspired by Instagram and the Codepen, ( Multiple Stickies ), by Dylan Scott
Distributed through Makesites.org
Released under the MIT license