Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okonet/react-scroll-sync
Synced scroll position across multiple scrollable elements
https://github.com/okonet/react-scroll-sync
dom react scroll sync synchronization
Last synced: about 11 hours ago
JSON representation
Synced scroll position across multiple scrollable elements
- Host: GitHub
- URL: https://github.com/okonet/react-scroll-sync
- Owner: okonet
- License: mit
- Created: 2016-10-04T12:38:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T20:22:10.000Z (about 1 year ago)
- Last Synced: 2024-12-14T03:03:49.420Z (7 days ago)
- Topics: dom, react, scroll, sync, synchronization
- Language: JavaScript
- Homepage: http://react-sync-scroll.netlify.com/
- Size: 1.64 MB
- Stars: 429
- Watchers: 4
- Forks: 62
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - React scroll sync - Synced scroll position across multiple scrollable elements (Uncategorized / Uncategorized)
README
# react-scroll-sync
Synced scroll position across multiple scrollable elements## Demo
http://react-sync-scroll.netlify.com/
## Documentation & Example
http://react-sync-scroll.netlify.com/
## License
MIT
## Installation
```bash
npm install --save react-scroll-sync
```
## Usage```jsx
import React, {Component} from 'react';
import { ScrollSync, ScrollSyncPane } from 'react-scroll-sync';export default class MyComponent extends Component {
render() {
Left Pane Content
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab aperiam doloribus
dolorum
est eum eveniet exercitationem iste labore minus, neque nobis odit officiis omnis
possimus quasi rerum sed soluta veritatis.
Middle Pane Content
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab aperiam doloribus
dolorum
est eum eveniet exercitationem iste labore minus, neque nobis odit officiis omnis
possimus quasi rerum sed soluta veritatis.
Right Pane Content
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab aperiam doloribus
dolorum
est eum eveniet exercitationem iste labore minus, neque nobis odit officiis omnis
possimus quasi rerum sed soluta veritatis.
);
}
}
```