Created
March 5, 2012 16:46
-
-
Save nielsdoorn/1979218 to your computer and use it in GitHub Desktop.
parallax testje
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* parallax testje | |
*/ | |
ul { | |
list-style-type:none; | |
} | |
img { | |
max-width: 720px; | |
} | |
#parallax | |
{position:relative; overflow:hidden; width:720px; height:480px;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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