Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 872 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 872 Bytes

react-scroll-loop

Demo

See Demo from Mobile

scrollOptions: file:///Users/whoami/react-scroll-loop/demo/index.html?auto=1&height=230&minSpeed=10

Config Options

Scroll can take an optional second parameter– an object of key/value settings:

  • speed Integer (default:2000) - speed of transitions in milliseconds.

  • minSpeed Integer (default:10) - min speed of transitions in milliseconds.

  • height Integer (default:200, required) - container's style.height = height + 'px'.

  • auto Integer - begin with auto scroll

  • transitionEnd Function - runs at the end slide transition.

How to use demo

git clone react-scroll-loop
cd react-scroll-loop/demo
open index.html (by browser)

Usage

Only by Chrome.

MIT Licensed