Skip to content

Instantly share code, notes, and snippets.

@nielsdoorn
Created March 5, 2012 16:46
Show Gist options
  • Save nielsdoorn/1979218 to your computer and use it in GitHub Desktop.
Save nielsdoorn/1979218 to your computer and use it in GitHub Desktop.
parallax testje
/**
* parallax testje
*/
ul {
list-style-type:none;
}
img {
max-width: 720px;
}
#parallax
{position:relative; overflow:hidden; width:720px; height:480px;}
<ul id="parallax">
<li><img src="http://1.bp.blogspot.com/-b8eV_NV4W0s/Tcj10lSGk9I/AAAAAAAACIc/ItI5alKZVnc/s1600/4.jpg"></img></li>
<li><h1>Hello World</h1></li>
</ul>
<script src="http://webdev.stephband.info/js/jquery.jparallax.js" />
});
<script>
//$('#parallax').jparallax({}, {}, {xtravel: '200px'});
$('#parallax').hide();
</script>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment