1.0.1 • Published 6 years ago

react-gradient-scroll-indicator v1.0.1

Weekly downloads
210
License
MIT
Repository
github
Last release
6 years ago

react-gradient-scroll-indicator

A wrapper for scrollable content that adds gradients indicating when more scrolling is possible

NPM JavaScript Style Guide

Install

npm install --save react-gradient-scroll-indicator

Props

namedefault valuedescription
primaryColor#ffffffouter color
fadeColortransparentinner color
fadeHeight20pxheight of the fade overlays

Usage

import React, { Component } from 'react'

import GradientScroll from 'react-gradient-scroll-indicator'

class Example extends Component {
  render () {
    return (
      <GradientScroll>
      	<div>
      		Literally any content you want can go here.
      	</div>
      </GradientScroll>
    )
  }
}

Example GIF

Example Gif

License

MIT © jbccollins

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago