Jquery Background Parallax

My jQuery plugins were created either as experiments or to fulfil some need that I had on a project. I made the plugins available for free on this website - and you can still get them all here now.

I no longer actively support the jQuery plugins for the following reasons...

  • Many of the features can now be achieved without JavaScript using new features of HTML and CSS
  • Some of the features probably shouldn't even have been used, they were just experiments!
  • Not everyone wants to use jQuery - I will create stand alone plugins for the popular stuff that don't enforce any particular framework

Jquery Background ParallaxQuick Links

Visit the jQuery Background Parallax project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Background Parallax Demonstration.

Description

The jQuery Background Parallax project is a plugin for the jQuery JavaScript Framework, which animates the background of an HTML element at a different speed to the foreground, which gives the illusion of depth.

Requirements

CSS

/* Recomended styles */
		
		#horizontal {
			background-image: url(horizontal.png);
			background-position: 0px 0px; /* horizontal vertical */
			height: 300px;
			width: 300px;
			overflow: auto;
		}
		/* Optional styles */
		
		#horizontal {
			float: left;
			margin-left: 100px;
		}
		#horizontal > div {
			height: 270px;
			width: 900px;
			margin: 0;
			color: White;
		}
		#horizontal .panel {
			width: 31%;
			padding: 0 1%;
			float: left;
		}

JavaScript

$("#horizontal").backgroundparallax();

You Are Here: Home » Jquery Plugins » Background Parallax