1.0.1 • Published 7 years ago

react-stickify v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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>