3.0.6 • Published 6 years ago

jquery.background-parallax-scroll v3.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

jquery.background-parallax-scroll

Get started

Install

$ npm install jquery.background-parallax-scroll

Load scripts

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="/node_modules/jquery.background-parallax-scroll/dist/jquery.background-parallax-scroll.min.js"></script>
<link rel="stylesheet" href="/node_modules/jquery.background-parallax-scroll/dist/jquery.background-parallax-scroll.min.css">

Setting

<script>
jQuery(function($) {
  $('.js-bg-parallax').backgroundParallaxScroll({
    speed: 3 // Optional
  });
});
</script>
<div class="js-bg-parallax">
  <div class="js-bg-parallax__bgimage">
    <img src="/path/to/bg.jpg" alt="">
  </div>
  <div class="js-bg-parallax__content">
    Contents
  </div>
</div>

License

MIT

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago