parallax-js is the real parallax scrolling, not just static backgrounds. This is simply done using (lightweight) vanilla javascript which animates the parallax elements based on the current scroll position in the page’s vertical scroll.
jquery parallax scroll, parallax scrolling js, 3d parallax js, parallax js, parallax js examples, smooth parallax scrolling, smooth parallax scrolling background image
How to make use of it:
1. Add a parallax component to the web page.
<div class="container"> <div class="parallax"></div> </div>
2. Make the parent container relative positioned.
.container { position: relative; overflow: hidden; height: 200vh; }
3. The needed CSS styles for the parallax component.
.parallax { position: absolute; width: 100vw; height: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.15); z-index: -99; background-position: bottom; background-size: cover; background-image: url("bg.jpg"); }
4. Load the principle script parallax.js
within the doc and finished.
<script src="parallax.js"></script>
5. Set the factor of displacement after every scroll. Between 0 to 10.
<div class="container" data-depth="5"> <div class="parallax"></div> </div>
Ultra-light Parallax Scrolling, parallax-js Plugin/Github, simple parallax scrolling effect with css vanilla javascript
See Demo And Download
Official Website(computergnome99): Click Here
This superior jQuery/javascript plugin is developed by computergnome99. For extra Advanced Usages, please go to the official website.
Be First to Comment