Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 7, 2022. It is now read-only.
/ react-haze Public archive

🌫 Easily show a fade at edges of lists to indicate scrollability

License

Notifications You must be signed in to change notification settings

alvarlagerlof/react-haze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

React Haze

Easily show a fade at edges of lists to indicate scrollability

Features

  • Set a pixel offset for when the fade is triggerd
  • Choose the fade color and size
  • Works horizontally or vertially

Installation

Install with npm or yarn

npm install react-haze
yarn add react-haze

Import the Haze component

import Haze from "react-haze";

Wrap a non-scrolling container with the haze component and choose props according to your preference.

<Haze
  orientation="horizontal"
  scrollOffset={20}
  gradientSize={50}
  gradientColor="rgb(255, 254, 249)"
>
  {/* You content goes here */}
</Haze>

Demo

There is a CodeSandBox demo here

License

MIT

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

Feedback

If you have any feedback, please create an issue reach me on twitter.

About

🌫 Easily show a fade at edges of lists to indicate scrollability

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •