1.0.8 • Published 3 months ago

backpax v1.0.8

Weekly downloads
33
License
MIT
Repository
github
Last release
3 months ago

Backpax

npm.io 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');
1.0.8

3 months ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago