Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-rellax

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rellax

React Parallax component using Rellax.js

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-rellax

Live Demo

React Parallax component using Rellax.js.

Installation

npm i --save react-rellax

Notes

  • All props are optional.
  • It's common to tweak speed and percentage to suit your design requirements.
  • All other props not mentioned below (e.g. className, style, etc.) are passed down as usual.

Props

  • as (str) : Tag to use as a wrapper. Default: div
  • centered (bool) : Centers the component on the viewport
  • horizontal (bool) : Horizontal scrolling
  • onMove (func) : Callback function which accepts an object {x: int, y: int}
  • percentage (num) : Initial scroll percentage
  • speed (int) : Integer >= -10 && <=10 determines scroll speed. Default: -2
  • zIndex (int) : Orders component on the z-axis
  • wrapper (str) : Selector to use as a wrapper from which to calculate parallax position.

Keywords

FAQs

Package last updated on 11 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc