Skip to content

tm-minty/jquery.pinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.pinit

A jQuery plugin that pins DOM elements to the viewport top and according their order places them under each other.

Original: 8505 bytes.

Minified: 2670 bytes.

Gzipped: 632 bytes.

Requirements

  • jQuery >= 1.10.2 (plugin developed and tested on that version)

Usage

	$('.js-pinit').pinit({
		pinnedClass: 'my-pinned-class',
		setOriginalDimensions: true
	});

Options

pinnedClass string

CSS class name which adds to element on pin.

Default: pinned


setOriginalDimensions boolean

Option to pass pinned element it's original dimensions. When plugin pins element, it sets position property to fixed and element's dimesions can be changed.

Default: false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published