Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Make sticky react components that follow scroll when leaving the viewport

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages