New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-parlx

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-parlx

parlx.js implementation for React component

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

react-parlx

NPM version NPM downloads

parlx.js implementation for React component

Demo

See plugin in action

How to Install

First, install the library in your project by npm:

$ npm install react-parlx

Or Yarn:

$ yarn add react-parlx

Getting Started

• Import plugin in React application file:

import ReactParlx from 'react-parlx';

• Later create parallax component and pass options:

<ReactParlx
  overlay={ /* true/false */ }
  settings={ /* settings */ }
  callbacks={ /* callbacks */ }
  className={ /* class name(s) */ }
  parlxMove={ /* event output destination */ }
  // other props for div tag e.g. style
/>

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)
settingsobject{}Default parlx.js settingsparlx.js settings
callbacksobject{}Default parlx.js callbacksparlx.js callbacks
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

Keywords

React

FAQs

Package last updated on 30 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts