Easy jQuery & Html5 Based Image Parallax Scrolling Effect

Easy jQuery & Html5 Based Image Parallax Scrolling Effect
File Size: 123 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A super tiny jQuery plugin to add trendy Parallax scrolling effects on the images as you scroll down the web page. All the options can be passed via Html5 data-OPTION attributes so you can easily create image parallax scrolling effects without any extra CSS or Javascript codes.

How to use it:

1. Add the jQuery javascript library and the jQuery parallax scroll plugin in your document.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="parallax-scroll.js"></script>

2. Insert the images into your document using data-image attribute instead.

<div class="parallax-scroll" data-image="1.jpg"></div>

3. Pass the options to the parallax scrolling effect via data-* attributes.

<div class="parallax-scroll" 
     data-image="1.jpg" 
     data-height="320" 
     data-min-background-width="400">
</div>

Change log:

2014-07-01

  • Fix image position bug on init
  • Now use translate3d (faster)

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