Socket
Socket
Sign inDemoInstall

backpax

Package Overview
Dependencies
68
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    backpax

Simple JavaScript Library to add parallax image to background-image


Version published
Weekly downloads
129
increased by14.16%
Maintainers
1
Install size
6.80 MB
Created
Weekly downloads
 

Readme

Source

Backpax

Simple JavaScript Library to add parallax image to background-image

Install

$ npm install backpax --save

Demo

Demo page is here

Usage

If you want to add parallax effect to element's background-image

<div class="js-parallax parallax" 
  data-img="./path/to/default-image"
  data-img-768="./path/to/image-which-size-is-smaller-than-768"
  data-img-1024="./path/to/image-which-size-is-smaller-than-1024"
>
  <p>Hello world!</p>
</div>
import Backpax from 'backpax';

new Backpax('.js-parallax');

Keywords

FAQs

Last updated on 13 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc