mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
353 B
TypeScript
19 lines
353 B
TypeScript
// initialization
|
|
$('#sticker').sticky({
|
|
topSpacing: 12,
|
|
bottomSpacing: 12,
|
|
className: 'class-name',
|
|
wrapperClassName: 'wrapper-class-name',
|
|
center: true,
|
|
getWidthFrom: '#container',
|
|
widthFromWrapper: false,
|
|
responsiveWidth: true,
|
|
zIndex: '2'
|
|
});
|
|
|
|
// update element position
|
|
$('#sticker').sticky('update');
|
|
|
|
// unstick
|
|
$("#sticker").unstick();
|