react-parallax-component

by keske

Easiest way to add scroll parallax effect on the component

132 Stars 12 Forks Last release: Not found 38 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

React Parallax Component

Easiest way to add scroll parallax effect on the component.

image

Installation

npm install react-parallax-component

Usage

import ParallaxComponent from 'react-parallax-component';
  
Children component

Props

  • speed
    (String) - animation speed, default:
    -0.03
  • width
    (String) - component width, default:
    auto
  • height
    (String) - component height, default:
    auto
  • top
    (String) - component top position, default:
    inherit
  • left
    (String) - component left position, default:
    inherit
  • right
    (String) - component top position, default:
    inherit

Development

$ npm install

Run app

$ npm start

And open in browser: http://localhost:4000

Build

$ npm run build

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.