0.1.3 • Published 7 years ago

react-sticky-block v0.1.3

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

react-sticky-block

Right way to make your block sticky


Install

npm install react-sticky-block

Usage

import StickyBlock from 'react-sticky-block';

const MyComponent = () => (
  <div className="my-container" style={{position: 'relative'}}>
    <StickyBlock>
      <div>Any Content</div>
    </StickyBlock>
  </div>
);

Movement of sticky block is limited by height of their container.

Container must have relative positioning applied.

StickyBlock props

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago