Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

jbccollins/react-gradient-scroll-indicator

Repository files navigation

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

NPMJavaScript Style Guide

Install

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

Props

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

Usage

importReact,{Component}from'react'importGradientScrollfrom'react-gradient-scroll-indicator'classExampleextendsComponent{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

[8]ページ先頭

©2009-2025 Movatter.jp