2.0.0 • Published 2 years ago

easy-scroll-sync v2.0.0

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

👯‍♀️ Easy Scroll Sync

npm version bundlephobia

Easily Synchronise scrolling between elements!

Features 🔥

  • Less than 2kb!
  • Zero Dependencies
  • Easy to use! 💪

Install 🔮

NPM

npm install easy-scroll-sync

Yarn

yarn add easy-scroll-sync

Via Script Tag

At the bottom of you body tag

<script src="https://cdn.jsdelivr.net/npm/easy-scroll-sync@latest/dist/easy-scroll-sync.min.js"></script>

Usage 💻

If you are using a module loader you will need to import easy-scroll-sync

import { easyScrollSync } from "easy-scroll-sync";

Set data-scrollsync on the elements you want to synchronise scrolling and you're done!

<div data-scrollsync class="scrollable_item_1"></div>
<div data-scrollsync class="scrollable_item_2"></div>

You can also call easyScrollSync() to reset and recreate the elements scroll listeners.

Support 💬

2.0.0

2 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago