🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@la-haute-societe/lhs-parallax

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@la-haute-societe/lhs-parallax

LHS Parallax plugin to make parallax animation when scrolling

latest
npmnpm
Version
0.1.4
Version published
Maintainers
2
Created
Source

Deprecation warning

This package has been renamed to @lahautesociete/parallax.

LHS Parallax

LHS Parallax plugin to make parallax animation when scrolling.

Installation

npm install @la-haute-societe/lhs-parallax

Usage

HTML

Create an HTML element with the scroll-level attribute.

You can pass two attributes to your element :

  • scroll-level - Parallax level (required)
  • scroll-direction - Parallax direction (optional) : x / y (default y),
<div class="myElement" scroll-level="3" scroll-direction="x"></div>

JavaScript

Import LhsParallax where you want to use it.
Then get the HTML element and create an instance of LhsParallax passing your element in parameter.

import LhsParallax from '@la-haute-societe/lhs-parallax';
var myElement = document.querySelector('.myElement');
var scroll = new LhsParallax(myElement);

FAQs

Package last updated on 21 Jun 2017

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