GithubHelp home page GithubHelp logo

alvarlagerlof / react-haze Goto Github PK

View Code? Open in Web Editor NEW
68.0 68.0 0.0 2.53 MB

๐ŸŒซ Easily show a fade at edges of lists to indicate scrollability

License: MIT License

JavaScript 4.30% TypeScript 88.76% CSS 4.27% HTML 2.66%
react ui-components

react-haze's Introduction

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.

react-haze's People

Contributors

alvarlagerlof avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-haze's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.