0.0.4 • Published 4 years ago

sync-scroll2 v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

sync-scroll2

Based on this.

Usage

npm install sync-scroll2

or

yarn add sync-scroll2
import syncscroll from 'sync-scroll2'

When the window is loaded, call

syncscroll()

Create the scrollable elements which you need to be synchroniously scrolled, add the syncscroll class for them, and set the name attribute to the same value:

<div class=syncscroll name=myElements>
    First big text goes here...
</div>

<div class=syncscroll name=myElements>
    Second big text goes there...
</div>