Prallaxing objects just float in your html page. It moves up/down in a speed different to the speed the user scrolls the page with.
This project is licensed under the terms of the MIT license. A copy of the license will be found in the root directory of the project as "LICENSE".
Include the following line in your HTML code.
<script defer src="https://jagannathBhat.github.io/parallaxingObject/parallaxingObject.min.js"></script>
Download the javascript file here. Then include the following line in your HTML code.
<script defer src="parallaxingObject.min.js"></script>
Add the class jbParallaxingObject
and the jbParallaxSpeed
attribute to the HTML elements you want to parallax. The value of the jbParallaxSpeed
controls the speed of the HTML elements. Higher the value, higher the speed.
<div class="jbParallaxingObject" jbParallaxSpeed="20">Just Parallaxing</div>
Code for the demo can be found in the demo directory in the root directory of the project.
E-mail: jagannathbhatjb@gmail.com
Facebook: facebook.com/jagannathbhatjb
LinkedIn: linkedin.com/in/jagannathbhatjb