forked from cheeaun/the-sexy-curls-jquery-plugin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elliott Kember
committed
Jan 18, 2009
1 parent
116d0ae
commit 8ce47f0
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Okay, so you want a sexy page turn like @elliottkember? | ||
|
||
This is your chance. | ||
|
||
Copy everything in this repository into the /turn/ folder in your public directory. | ||
|
||
Now, in your HTML, insert an object like this: | ||
|
||
<img id="target" src="turn/code.png"> | ||
↑ | ||
Take note, it has an ID. This is useful. The object does not have to be an image, but images look awesome. | ||
For instance, I use a screenshot of my site's HTML code. | ||
|
||
Then, in your HTML <head>, put: | ||
|
||
<script type="text/javascript" src="turn/turn.js"></script> | ||
<link rel="stylesheet" type="text/css" href="turn/turn.css"> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$( '#target' ).fold({}); | ||
}); | ||
</script> | ||
|
||
And your site should be awesome too. | ||
|
||
Now, if you're a clever clogs and look at the code, you'll find this: | ||
|
||
// Default awesomeness | ||
var defaults = { | ||
directory: 'turn', // The directory we're in | ||
side: 'left', // change me to "right" if you want rightness | ||
turnImage: 'fold.png', // The triangle-shaped fold image | ||
maxHeight: 400, // The maximum height. Duh. | ||
starting_width: 80, // The height and width | ||
starting_height: 80 // with which to start | ||
}; | ||
|
||
These are the default values, and you can specify them as you see fit in your HTML. | ||
For instance, if you went like this: | ||
|
||
$(document).ready(function(){ | ||
$( '#target' ).fold({ | ||
side: 'right' // Right! Whoa! | ||
}); | ||
}); | ||
|
||
You'd get the page turning from the top-right... and that'd be awesome. |
File renamed without changes
File renamed without changes
This file contains 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