Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 279 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 279 Bytes

react-stickify

Make sticky react components that follow scroll when leaving the viewport.

import Sticker from 'react-stickify';

const fixedNavHeight = 86; // .fixed-nav { height: 86px; }

<Sticker topMargin={fixedNavHeight}>
    <div>I'm sticky!</div>
</Sticker>