August 14, 2022

Simple jQuery Parallax Effect for Background Images | jQParralax

jQParralax is a tiny jQuery plugin that applies a parallax scrolling effect to any DOM elements with background images. Slightly adjust the position of the background image when scrolling the page.

parallax scrolling, parallax effect css, 3d parallax effect, pure css parallax background image, parallax effect website, parallax scrolling css tricks

How to make use of it:

1. Add background photographs to the parallax containers with the CSS class of ‘parallax-background’.

<div class="parallax-background" style="background-image:url('1.jpg');">
  Parallax Effect 1
</div>

<div class="parallax-background" style="background-image:url('1.jpg');">
  Parallax Effect 2
</div>

<div class="parallax-background" style="background-image:url('1.jpg');">
  Parallax Effect 3
</div>

<div class="parallax-background" style="background-image:url('1.jpg');">
  Parallax Effect 4
</div>

...

2. Specify the preliminary place of those background photographs.

.parallax-background {
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
}

3. Load the principle script jQ-parallax.js after jQuery and the plugin will deal with the remainder.

<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="jQ-parallax.js"></script>

Parallax Effect For DOM Elements With BG Images, jQParralax Plugin/Github, parallax scrolling examples, parallax image


See Demo And Download

Official Website(howbizarre): Click Here

This superior jQuery/javascript plugin is developed by howbizarre. For extra Advanced usage, please go to the official website.

Share

You may also like...

Leave a Reply

Your email address will not be published.