Skip to content

jbccollins/react-gradient-scroll-indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

149676c · Aug 26, 2018

History

7 Commits
Aug 24, 2018
Aug 26, 2018
Aug 22, 2018
Aug 22, 2018
Aug 22, 2018
Aug 22, 2018
Aug 24, 2018
Aug 24, 2018
Aug 26, 2018
Aug 22, 2018
Aug 24, 2018

Repository files navigation

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

name default value description
primaryColor #ffffff outer color
fadeColor transparent inner color
fadeHeight 20px height 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published