Skip to content

Blackspo0n/JQuery-simple-parallaxScroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JQuery-Simple-parallaxScroll

Very alpha of a smooth parallaxscroll. Useable for creating nice parallax headers.

How to use

Define a container with an inner container:

<div id="parallax">
  <div></div>
</div>

The outer container should hold the parallax background and the inner container should hold the Logo.

Define a style for both containers like this:

#parallax {
    height: 435px !important;
    background: url('background.png') top center!important;
    background-size: auto 100%;
}

#parallax div {
    margin: 0 auto;
    background: url('logo.png') center center no-repeat!important;
    width: 385px;
    height: 435px;
}

Call the Plugin:

jQuery("#parallax").parallaxScroll({});

About

Very alpha of a smooth parallaxscroll

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published