Responsive Any Content Parallax Plugin With jQuery Parallux - Download Responsive Any Content Parallax Plugin With jQuery - Parallux

Download Responsive Any Content Parallax Plugin With jQuery – Parallux

Posted on

This time I will share jQuery Plugin and tutorial about Responsive Any Content Parallax Plugin With jQuery – Parallux, hope it will help you in programming stack.

Responsive Any Content Parallax Plugin With jQuery Parallux - Download Responsive Any Content Parallax Plugin With jQuery - Parallux
File Size: 43.7 KB
Views Total: 6310
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Parallux is a jQuery plugin which makes use of CSS3 3D transforms (translate3d) to create smooth hardware accelerated parallax scrolling effect on any content (videos, images, background, sliders, text) with fallbacks to old browsers and specific mobile devices.

How to use it:

1. First you need to include jQuery library and then link the jQuery Parallux plugin’s CSS JavaScript files.

1 <link rel="stylesheet" href="dist/jquery.parallux.min.css">
2 <script src="//code.jquery.com/jquery-2.2.3.min.js"></script>
3 <script src="src/jquery.parallux.js"></script>

2. Add parallax background and foreground layers to your webpage as follows:

01 <div class="parallux">
02  
03   <!-- Background layer -->
04   <div class="parallux-bg fixed">
05     <!-- Div for using translate3d -->
06     <div class="parallux-inner dark bg-header" >
07       <!-- Here you can insert any HTML you want -->
08       <div class="text">
09         <h2>Lorem ipsum dolor</h2>
10       </div>
11     </div>
12   </div>
13  
14   <!-- Parallax foreground with the same size and transparent -->
15  
16 </div>

3. Initialize the plugin and done.

1 $(".parallux").parallux();

4. Plugin’s default settings.

01 $(".parallux").parallux({
02  
03   // full height mode
04   fullHeight: true,
05  
06   // can be 'scroll' or 'parallax'
07   onMobile: 'fixed',
08  
09   // animation type on image load
10   onImageLoad: 'fadeIn'
11    
12 });

Change log:

2016-05-26

  • JS update
  • add gulp support

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

source : jqueryscript.net