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: August 31, 2019
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">

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.

    backgroundImage: "url('YOUR_HERO_IMAGE')"

Be the first to comment

Leave a Reply

Your email address will not be published.


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