A jQuery plugin for synchronizing vertical scroll of several elements.
CoffeeScript
Switch branches/tags
Nothing to show
Clone or download

README.md

jQuery.SyncScroll

Synchronize the vertical scroll position of several elements: Example

Usage

$(document).syncScroll('.header', {
	// Start synchronization after scrollTop reaches this offset
	// Default: 0
	offset: $('.unsynced').height(),

	// Make the header scroll at half the speed
	// Default: 1
	ratio: 0.5
});

Both offset and ratio can be either an numeric value or a function returning an number.

License

jQuery.SyncScroll is released under the MIT License.