JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q31387F
  • License MIT

jQuery parallax background plugin

Package Exports

  • parallax_background

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parallax_background) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

parallaxBackground

Demo

https://lemehovskiy.github.io/parallax_background/demo

Package Managers

# NPM
npm install parallax_background

Settings

Option Type Default
event string scroll
animation_type string shift
zoom int 20
rotate_perspective int 1400
animate_duration int 1

Example:

<section class="parallax-demo-1">
    <div class="parallax-inner"
         style="background-image: url('image.jpg')">
    </div>
</section>

<script>
    $('.parallax-demo-1').parallaxBackground({
        event: 'scroll',
        animation_type: 'shift'
    });
</script>

Browser support

  • Chrome
  • Firefox
  • Opera
  • IE10/11

Dependencies

  • jQuery 1.7
  • Gsap