Skip to content
forked from asvd/syncscroll

About

scroll two or more areas simultaneously

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

syncscroll2

Based on this.

Usage

npm install syncscroll2

or

yarn add syncscroll2
import syncscroll from 'syncscroll2'

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>

About

scroll two or more areas simultaneously

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages