Skip to content
A jQuery plugin for synchronizing vertical scroll of several elements.
CoffeeScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README.md
example.html
jquery.syncscroll.coffee
jquery.syncscroll.js

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.

You can’t perform that action at this time.