Skip to content

danxexe/jquery.syncscroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A jQuery plugin for synchronizing vertical scroll of several elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published