Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 592 Bytes

File metadata and controls

24 lines (17 loc) · 592 Bytes

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.