Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-customscroll

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-customscroll

This is little component for custom scroll in React

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
102
decreased by-30.61%
Maintainers
1
Weekly downloads
 
Created
Source

React Custom Scroll

This is little component for custom scroll in React. It is very customizable and flexible component.

Demo

Features:

  • Without dependency
  • Very simple and flexible
  • Very small size (8kb for JS / 1kb - CSS)
  • Easy customization, easy api
  • Keyboard bind
  • Reinitialize after all mutation events
  • Mobile compatibility
  • Animate scrollTo feature
  • min-height and max-height compatibility

How usage

Step 1:

npm install react-customscroll -save

Step 2:

Inject component on your page:

import 'react-customscroll/dist/styles.css';
import CustomScroll from 'react-customscroll';

Step 3:

Paste CustomScroll component inside wrapper block with height and overlow: hidden For example:

<div style={{height: '500px', overflow: 'hidden'}}>
  <CustomScroll>
    ...
  </CustomScroll>
</div>

See more examples in example/index.html

License

MIT

FAQs

Package last updated on 29 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc