Last active
March 25, 2018 12:59
-
-
Save srobbin/1976643 to your computer and use it in GitHub Desktop.
Backstretch Demo: Basic
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
/* | |
* At its core, Backstretch is a one-line plugin. | |
* Just pass in the path to an image, and you're done. | |
*/ | |
$.backstretch("images/garfield-interior.jpg"); |
<script type="text/javascript">
$(document).ready(function() {
$.backstretch("http://dl.dropbox.com/u/515046/www/garfield-interior.jpg");
});
</script>
how to set customize width to that function?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using this basic option I think it is worth mentioning that I had to do this
<script type="text/javascript"> $(document).ready(function() { $.backstretch("JM_v1.png"); }); </script>