sticky-js icon indicating copy to clipboard operation
sticky-js copied to clipboard

Sticky top position

Open tomgreenhill opened this issue 7 years ago • 1 comments

It would be great if you could allow the update/change of the margin top position. I have a sticky element that needs to stick to a header, but this header's height is smaller on mobile.

Thanks, Tom

tomgreenhill avatar Mar 30 '17 13:03 tomgreenhill

+1

And/or add an extra data-attribute for being an 'offset' element or an element that comes before the sticky element and its height has to be (observed and) used for the offset.

strarsis avatar Mar 07 '18 21:03 strarsis