Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 555 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 555 Bytes

iScroll sticky headers

Plugin for iScroll that adds support for sticky headers.

Example and usage

Working demo: http://rudolfrck.github.com/iscroll-stickyheaders/

Usage:

var scroll = new IScroll('#scroll-element', { probeType: 3 });
scroll.enableStickyHeaders('h1');

Info

This plugin only supports sticky headers when using transform (CSS translate) in iScroll. It also only supports vertical scrolling. I'll look into adding support for horizontal scrolling if anyone needs it.