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

backpax

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backpax

Simple JavaScript Library to add parallax image to background-image

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126
decreased by-1.56%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Feb 2024

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