Lightweight Momentum Scrolling Parallax Plugin With jQuery parachutejs - Download Lightweight Momentum Scrolling And Parallax Plugin With jQuery - parachutejs

Download Lightweight Momentum Scrolling And Parallax Plugin With jQuery – parachutejs

Posted on

This time I will share jQuery Plugin and tutorial about Lightweight Momentum Scrolling And Parallax Plugin With jQuery – parachutejs, hope it will help you in programming stack.

Lightweight Momentum Scrolling Parallax Plugin With jQuery parachutejs - Download Lightweight Momentum Scrolling And Parallax Plugin With jQuery - parachutejs
File Size: 80.6 KB
Views Total: 2369
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

parachutejs is a lightweight jQuery plugin for adding momentum scrolling together with parallax effect to web content that works perfectly on both desktop and mobile browsers.

How to use it:

1. Load the latest version of jQuery and the jQuery parachutejs plugin at the bottom of the webpage.

1 <script src="//code.jquery.com/jquery-3.0.0.min.js"></script>
2 <script src="dist/parachute.js"></script>

2. Add the momentum scrolling effect to specific containers.

1 Parachute.page({
2   scrollContainer: '#scrollContainer',
3   heightContainer: '#fake<a href="https://www.jqueryscript.net/tags.php?/Scroll/">Scroll</a>Container'
4 });

3. Add the parallax scrolling effect to specific element(s).

01 Parachute.parallax({
02   element: '.parallax-1',
03   pxToMove: -400
04 });
05  
06 // or
07 Parachute.sequence({
08   element: ['.parallax-1', '.parallax-2'],
09   callback: function(active) {
10     // do something
11   }
12 });

4. Initialize the parachutejs and we’re done.

1 Parachute.init();

Change log:

2016-08-12

  • updates to scolling functions

2016-07-27

  • updated in-view calculations

2016-07-15

  • typos/fixes/cleanup

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

source : jqueryscript.net