Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Alex61NN5/easy-scroll-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

๐Ÿ‘ฏโ€โ™€๏ธ 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 ๐Ÿ’ฌ

  • ๐Ÿž For Bug Reports and Enhancements please use the issues section

About

๐Ÿ‘ฏโ€โ™€๏ธ Easily synchronize scroll between different elements

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /