1.3.0 • Published 4 years ago

react-parlx v1.3.0

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

react-parlx

NPM version NPM downloads

parlx.js implementation for React.js component

Demo

See plugin in action

How to Use

• Install plugin via favourite package manager:

$ npm install react-parlx
$ yarn add react-parlx

Getting Started

• Import plugin in React.js application file:

import ReactParlx from 'react-parlx';

• Later create parallax component and pass options:

<ReactParlx
  overlay={ /* true/false */ }
  options={ /* options */ }
  styles={ /* CSS styles */ }
  className={ /* class name(s) */ }
  parlxMove={ /* event output destination */ }
/>

You can add components with or without additional content:

with:

<ReactParlx /* options */>
  // additional content
</ReactParlx>

without:

<ReactParlx /* options *//>

Props

NameTypeDefaultDescriptionAvailable options
overlaybooleanfalseCreate overlay for parallax container elementtrue (enable) / false (disable)
styleobject{}CSS styles for parallax containerCSS styles
optionsobject{}Default parlx.js optionsparlx.js options
classNamestringparallaxParallax container class nameName of parallax container

Event

parlxMove event will output current position of the parallax element

License

This project is licensed under the MIT License © 2018-present Jakub Biesiada

1.4.0-beta.4

4 years ago

1.4.0-beta.3

4 years ago

1.4.0-beta.2

4 years ago

1.4.0-beta.1

4 years ago

0.0.1

5 years ago

1.3.0

5 years ago

1.3.0-beta.2

5 years ago

1.3.0-beta.1

5 years ago

1.2.0

5 years ago

1.2.0-beta.2

5 years ago

1.2.0-beta.1

5 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.3-beta.1

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-alpha.1

6 years ago