jQuery Plugin Initialization

				            	
$(document).ready(function(){
	$('.tabs-wrapper .row').pushpin({ top: $('.tabs-wrapper').offset().top });
});
				            	
				            

CSS Classes

A pushpinned element has 3 states. One above and below the scrolling threshold, and the pinned state where the element becomes fixed. Because pushpin changes positioning, chances are your element will look different when the states change. Use these css classes to correctly style your 3 states.

				            	
// Class for when element is above threshold
.pin-top {
	position: relative;
}

// Class for when element is below threshold
.pin-bottom {
	position: relative;
}

// Class for when element is pinned
.pinned {
	position: fixed !important;
}
				            	
				            

jQuery Plugin Options

Option Name Description
Top The distance in pixels from the top of the page where the element becomes fixed. (Default: 0)
Bottom The distance in pixels from the top of the page where the elements stops being fixed. (Default: Infinity)
Offset The offset from the top the element will be fixed at. (Default: 0)
Removal

To remove the pushpin from an element, pass in 'remove' as the option to the pushpin function.

				            	
// Removes pushpin and pushpin classes
$('.tabs-wrapper .row').pushpin('remove');