Skip to content

snakeparallax/snakeparallax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Parallax

A jquery plugin that creates a simple, clean, and powerfull parallax effect.

See live demo: https://snakeparallax.github.io/snakeparallax/

Getting started

Dependecies

Get the latest jQuery library.

Installation

Include JS

First, include JQuery and Snake.Parallax.js files into your HTML head:

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

Call the plugin

Second, call the Snake Parallax initializer.

<script>
  $(document, window).SnakeParallax({
    backgroundImage:"url('YOUR_HERO_IMAGE')"
  });
</script>

Set HTML

You need to create a div or section tag for your hero section, and add the attribute snake-parallax="hero". You do not need to create a special class, id, or css style for the section.

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

Your parallax is ready!

Credits

About

A jquery plugin that creates a simple, clean, and powerfull parallax effect.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published