Skip to content

Make sticky react components that follow scroll when leaving the viewport

Notifications You must be signed in to change notification settings

mrzarkovic/react-stickify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published