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
<div id="book1" class="book"> | |
<img src="book.jpg" /> | |
</div> |
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
@font-face { | |
font-family: "Shifticons"; | |
src: url("../fonts/shifticons.eot"); /* IE9 Compat Modes */ | |
src: url("../fonts/shifticons.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */ | |
url("../fonts/shifticons.woff") format("woff"), /* Modern Browsers */ | |
url("../fonts/shifticons.ttf") format("truetype"), /* Safari, Android, iOS */ | |
url("../fonts/shifticons.svg#Shifticons") format("svg"); /* Legacy iOS */ | |
} |
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
<style media="print"> | |
#backstretch { display: none; } | |
</style> |
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
<!-- | |
In this demo, there are a series of circular images. | |
Their opacity changes as you approach each individual one. | |
--> | |
<!-- Beginning styles --> | |
<style> | |
img.circle { | |
float: left; | |
height: 80px; |
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
<!-- | |
Notice that the size and color of the text above changes | |
as your cursor approaches it. | |
--> | |
<!-- Beginning styles --> | |
<style> | |
a#demo-link { | |
font-size: 24px; | |
color: #FFFFCC; |
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
<a href="javascript:$.pageslide({ direction: 'left', href:'_secondary.html' })">Link text</a> |
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
<a href="#modal" class="second">Link text</a> | |
<div id="modal" style="display:none"> | |
<h2>Modal</h2> | |
<a href="javascript:$.pageslide.close()">Close</a> | |
</div> | |
<script> | |
$(".second").pageslide({ direction: "left", modal: true }); | |
</script> |
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
<a href="_secondary.html" class="first">Link text</a> | |
<script> | |
$("a.first").pageslide(); | |
</script> |
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
/* | |
We can even execute JavaScript. | |
For example, here is a simple jQuery plugin that shuffles the "Demo" heading text above. | |
http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/ | |
*/ | |
$("#demo-header").shuffleLetters(); |
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
/* | |
* You can easily attach Backstretch to jQuery events, like click | |
* | |
* Click the buttons above to see the background image change | |
*/ | |
$("#outside").click(function(e) { | |
e.preventDefault(); | |
$.backstretch('images/outside.jpg'); | |
}); |