Components

HideOnScroll

<HideOnScroll enabled direction children />

Constructor

# <HideOnScroll enabled direction children />

Hides the child elements on scroll in the configured direction.

PropTypes:
Name Type Required Description Default
enabled bool No Specifies whether to hide the element on scroll.
direction enum No Specifies the scroll direction which triggers the hide effect. 'down'
children node Yes Child react components

View Source components/hideOnScroll.js, line 11