Skip to content

qilovehua/react-scroll-loop

Repository files navigation

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

About

scroll from bottom to top by loop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published