Skip to Navigation or
Skip to Content

Jquery Background Parallax

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 » JavaScript » Background Parallax


I use a cookie on this website. This cookie doesn't contain or relate to any personal information and it isn't shared with any other website, it just ensures that I don't count you more than once in my website statistics. The Privacy and Electronic Communications Regulations require me to ask your permission to use this cookie, so please indicate below that you are happy for me to do this - I will remember your selection with a cookie, so if you accept I won't ask again...