Skip to content

vibrates09/syncscroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%