1.0.5 • Published 6 years ago
onlyscroll v1.0.5
JUST ONLY SCROLL && Introduction
this is just a very simple react scroll plug ,almost 200 lines to implement,its small and very useful.Most of the time we don't need much function,we just need text scroll in HTML,ye,If you happen to have such a need,you will love it
Platform
PC and Mobile can work
How to use
npm i onlyscroll
import scroll package
import Scroll from 'onlyscroll'
....
render() {
return (
<div>
<Scroll showBar={true} />
</div>
)
}
Demo
you may need to see it before you npn i it demo
API? Or Props
showBar:{Boolean} ---if you need a bar to show text view percent
TODO
1.props types verify
2.more api
3.horizontal slide