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')" });
Similar Code Snippets:
I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences.
I truly enjoy what I’m doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.