vue-scroll-sync
A Vue component that syncronize containers scroll positions
Installation
npm i --save vue-scroll-sync
Browser
Include the script file, then install the component with Vue.use(ScrollSync);
e.g.:
Module
;
Usage
Once installed, it can be used in a template as simply as:
Content
SSR
Create the plugins/vue-scroll-sync.js
:
Vue
Include plugin in your nuxt.config.js
file:
moduleexports = plugins: '~plugins/vue-scroll-sync'
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- react-scroll-sync for the scrolling position calculation and the method to prevent the event echo