Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonath-z/react-z-scroll

React scroll library built on top of skrollr library
https://github.com/jonath-z/react-z-scroll

npm-package react react-skrollr scroll skrollr

Last synced: 23 days ago
JSON representation

React scroll library built on top of skrollr library

Awesome Lists containing this project

README

        

# react-z-scroll

> Made with create-react-library

react-z-scroll is a react scroll library built on top of [skrollr](https://github.com/Prinzhorn/skrollr).

[![NPM](https://img.shields.io/npm/v/react-z-scroll.svg)](https://www.npmjs.com/package/react-z-scroll) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## DEM0

[react-z-scroll demo](https://react-z-scroll-demo-butik004.vercel.app)

## Install

```bash
npm install --legacy-peer-deps react-z-scroll
```

## Usage

Add `ScrollProvider` into root app

```jsx
import React, { Component } from 'react'

import { ScrollProvider } from 'react-z-scroll'

const myApp = () => {
return (

...

)
}
```

### Setting Scene data (Required)

Use data scrolling via props `data` (props type is object)

Skrollr [_Data attr document_](https://github.com/Prinzhorn/skrollr#absolute-vs-relative-mode)

```js
const Component = () => {
return (

Some content

)
}
```

## License

MIT © [Jonath-z](https://github.com/Jonath-z)