You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-page-scroller-qua

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-page-scroller-qua

Simple React component for smoothy full-page scolling

2.0.7-beta
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

React Page Scroller (Beta)

Simple React component for smoothy full-page scolling.

New beta version 2.0.6-beta released!!!

Demo

You can scroll the page using mouse wheel, touch scroll or keyboard arrows.

Live demo: vikliegostaiev.github.io/react-page-scroller

To run demo app locally:

npm install
npm start

App will start on localhost:3000.

Installation

via npm:

npm install react-page-scroller --save

Usage

Example is in demo/src.

Properties

PropertyTypeDescriptionDefault Value
animationTimernumberAnimation duration in milliseconds1000
blockScrollUpboolblock scroll upfalse
blockScrollDownboolblock scroll upfalse
containerHeightnumber/stringheight of react-page-scroller element100vh
containerWidthnumber/stringwidth of react-page-scroller element100vw
customPageNumbernumberexternal selected page, number of pages should start from 0, should be combined with pageOnChange usage (see example in demo/src/FullPage.js for more information). This prop was introduced as a replacement for "goToPage" method from legacy version
handleScrollUnavailablefunctioncallback, is calling when someone tries to scroll over last or first child component
pageOnChangefunctioncallback after page was scrolled
renderAllPagesOnFirstRenderboolflag for render all pages at first render of component
transitionTimingFunctionStringCSS transition timing function nameease-in-out
animationTimerBuffernumberAnimation buffer timing200

Dependencies

react-page-scroller requires:

  • React
  • lodash
  • Prop Types

Legacy Properties

PropertyTypeDescriptionDefault Value
animationTimernumberAnimation duration in milliseconds1000
transitionTimingFunctionStringCSS transition timing function nameease-in-out
pageOnChangefunctioncallback on page scroll
goToPagefunctionusing with ref, go to selected page, number of pages must start from 0
scrollUnavailablefunctioncallback, is calling when someone tries to scroll over last or first child component
containerHeightnumber/stringheight of react-page-scroller element100vh
containerWidthnumber/stringwidth of react-page-scroller element100vw
blockScrollUpboolblock scroll upfalse
blockScrollDownboolblock scroll upfalse

Keywords

react-component

FAQs

Package last updated on 17 May 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.