jQuery Plugin To Create Parallax Effects On Page Scroll parallaxed js - Download jQuery Plugin To Create Parallax Effects On Page Scroll - parallaxed.js

Download jQuery Plugin To Create Parallax Effects On Page Scroll – parallaxed.js

Posted on

This time I will share jQuery Plugin and tutorial about jQuery Plugin To Create Parallax Effects On Page Scroll – parallaxed.js, hope it will help you in programming stack.

jQuery Plugin To Create Parallax Effects On Page Scroll parallaxed js - Download jQuery Plugin To Create Parallax Effects On Page Scroll - parallaxed.js
File Size: 4.29 KB
Views Total: 8708
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

parallaxed.js is an ultra-light jQuery plugin for applying smooth parallax effects to given elements on vertical or horizontal page scrolling.

How to use it:

1. Include jQuery library and the jQuery parallaxed.js script on the webpage.

1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="src/parallaxed.js"></script>

2. Use the data-parallaxed-speed attribute to specify the different scrolling speeds for your parallax elements.

01 <div class="parallax"
02      data-parallaxed-speed="1.5"
03   ...
04 </div>
05  
06 <div class="parallax"
07      data-parallaxed-speed=".5"
08   ...
09 </div>
10  
11 <div class="parallax"
12      data-parallaxed-speed=".8"
13   ...
14 </div>

3. Enable the parallax scrolling effect on the elements.

1 $('.parallax').parallaxed();

4. All the options can be passed via data-* attribute on elements or via ‘option’ object during initialization.

01 $('.parallax').parallaxed({
02  
03   // use CSS transform
04   usetransform: true,
05  
06   // scrolling speed
07   speed: 1,
08  
09   // When parallax scrolling should start
10   // visible, offset or always
11   start: 'visible',
12  
13   // The offset parallax scrolling should start at
14   startoffsettop: 0,
15   startoffsetleft: 0
16    
17 });

This awesome jQuery plugin is developed by smashed-potatoes. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net