Simple parallax scrolling effect inspired by Parallax.js implemented as a CSS3 plugin. Demo
Download the Packege or include parallax.min.css in your document just before including CSS.
<link rel="stylesheet" href="/path/to/parallax.min.css">
You can use the following syntax to enable Parallax in your page:
<div class="herounit">
<img src="/path/to/image.jpg" class="heroimg">
<div class="container">
<p>Main Content</p>
</div>
</div>
To make image Responsive please change css "Top" property. Follow the rule below.
hight/width*100
After change it will look like:
top: calc(((100vh - [Your Calculation]]vw) / 4) * -2);
You can also controll the scrolling speed by changing translateZ property of heroimage.
If you dont want to add cross browser support then remove -webkit-overflow-scrolling from container class.
If you have a pull request you would like to submit, please ensure that you update the minified version of the library along with your code changes. This project uses CSS Minifier to perform code compression.