jQuery Parallax Scrolling Background Image

Snake Parallax is a simple, lightweight, responsive and easy to use jQuery plugin. It helps you to create jQuery based parallax scrolling background image. You just need to add background image URL in plugin configuration option, then snake parallax will do everything.

Moreover, the plugin doesn’t require any additional CSS to working, it dynamically add all necessary styles.

Plugin Overview

Plugin: Snake Parallax
Author: Snakeparallax
Licence: MIT Licence
Published: January 19, 2024
Repository: Fork on GitHub
Dependencies: jQuery 1.3.1 or Latest version
File Type: zip archive (HTML, CSS & JavaScript )
Package Size: 9.50 KB

How to Make jQuery Parallax Scrolling background Image

1. To make parallax scrolling, first of all load jQuery JavaScript library and Snake Parallax plugin into your HTML document.

<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

<!-- Snake Parallax JS -->
<script src="js/Snake.Parallax.js"></script>

2. After that, create a section with attribute snake-parallax="hero" and add your contents in it.

<section snake-parallax="hero">
  YOUR CONTENT GOES HERE...
 </section>

3. Now, its time to initialize the plugin. Call the plugin globally with document (or window) selector.
Insert your background image URL in url('YOUR_HERO_IMAGE') option.

$(document).SnakeParallax({
    backgroundImage: "url('YOUR_HERO_IMAGE')"
});

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...