🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Parallaxify.js is a lightweight (less than 1kb) and fast jQuery plugin for creating a background parallax effect on vertical page scrolling.

parallax

Documentation

parallaxify

JavaScript snippet to easily add a subtle parallax effect to background-images. No longer requires jQuery.

javascript

Just use parallaxify('.image_container'); to activate the effect. Of course, you can use it on an element with any class.

css

Use this css for your element:

.image_container {   background-image: url('./images/example.jpg');   background-size: cover;   background-position-x: 50%;   background-position-y: 0%;   background-repeat: no-repeat; } 

You May Also Like