-
Notifications
You must be signed in to change notification settings - Fork 264
/
index5.html
executable file
·154 lines (146 loc) · 6.3 KB
/
index5.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html lang="en" class="no-js demo-5">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BookBlock: A Content Flip Plugin - Demo 5</title>
<meta name="description" content="Bookblock: A Content Flip Plugin - Demo 5" />
<meta name="keywords" content="javascript, jquery, plugin, css3, flip, page, 3d, booklet, book, perspective" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/bookblock.css" />
<!-- custom demo style -->
<link rel="stylesheet" type="text/css" href="css/demo5.css" />
<script src="js/modernizr.custom.js"></script>
</head>
<body>
<div class="container">
<!-- Top Navigation -->
<div class="codrops-top clearfix">
<a class="codrops-icon codrops-icon-prev" href="http://tympanus.net/codrops/2012/08/29/multiple-area-charts-with-d3-js/"><span>Previous Demo</span></a>
<a href="http://dribbble.com/isaac317">Images by Isaac Montemayor</a>
<span class="right"><a class="codrops-icon codrops-icon-drop" href="http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/"><span>Back to the Codrops Article</span></a></span>
</div>
<header>
<h1>BookBlock <span>A Content Flip Plugin</span></h1>
<nav class="codrops-demos">
<a href="index.html">Demo 1</a>
<a href="index2.html">Demo 2</a>
<a href="index3.html">Demo 3</a>
<a href="index4.html">Demo 4</a>
<a class="current-demo" href="index5.html">Demo 5</a>
</nav>
</header>
<div class="main clearfix">
<ul class="bb-custom-grid" id="bb-custom-grid">
<li>
<h3>Neonmob set</h3>
<div class="bb-bookblock">
<div class="bb-item"><a href="http://dribbble.com/shots/614568-Lands-Devil-Spirit-Jinx"><img src="images/demo3/1.jpg" alt="image01"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/614264-Lands-Antspearer"><img src="images/demo3/2.jpg" alt="image02"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/614153-Lands-Bonemonster"><img src="images/demo3/3.jpg" alt="image03"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/614073-Lands-Boneater"><img src="images/demo3/4.jpg" alt="image04"/></a></div>
</div>
<nav>
<span class="bb-current"></span>
<span></span>
<span></span>
<span></span>
</nav>
</li>
<li>
<h3>Illustration Work</h3>
<div class="bb-bookblock">
<div class="bb-item"><a href="http://dribbble.com/shots/702201-Cat"><img src="images/demo3/5.jpg" alt="image05"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/493644-Death-Planet"><img src="images/demo3/6.jpg" alt="image06"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/432311-Bearwolf"><img src="images/demo3/7.jpg" alt="image07"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/297337-iPhone-4S"><img src="images/demo3/8.jpg" alt="image08"/></a></div>
</div>
<nav>
<span class="bb-current"></span>
<span></span>
<span></span>
<span></span>
</nav>
</li>
<li>
<h3>Everyday Monsters</h3>
<div class="bb-bookblock">
<div class="bb-item"><a href="http://dribbble.com/shots/298473-Pirate-Ghosts"><img src="images/demo3/9.jpg" alt="image09"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/298470-Sad-Tree"><img src="images/demo3/10.jpg" alt="image10"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/298467-Male-Mermaid"><img src="images/demo3/11.jpg" alt="image11"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/298463-Wolf-Eats-Cat"><img src="images/demo3/12.jpg" alt="image12"/></a></div>
</div>
<nav>
<span class="bb-current"></span>
<span></span>
<span></span>
<span></span>
</nav>
</li>
<li>
<h3>Signage for the Office</h3>
<div class="bb-bookblock">
<div class="bb-item"><a href="http://dribbble.com/shots/327171-Around-the-Office-Signage-7"><img src="images/demo3/13.jpg" alt="image13"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/327170-Around-the-Office-Signage-6"><img src="images/demo3/14.jpg" alt="image14"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/326463-Around-the-Office-Signage-4"><img src="images/demo3/15.jpg" alt="image15"/></a></div>
<div class="bb-item"><a href="http://dribbble.com/shots/326458-Around-the-Office-Signage-2"><img src="images/demo3/16.jpg" alt="image16"/></a></div>
</div>
<nav>
<span class="bb-current"></span>
<span></span>
<span></span>
<span></span>
</nav>
</li>
</ul>
</div>
</div><!-- /container -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/jquerypp.custom.js"></script>
<script src="js/jquery.bookblock.js"></script>
<script type="text/javascript">
var Page = (function() {
var $grid = $( '#bb-custom-grid' );
return {
init : function() {
$grid.find( 'div.bb-bookblock' ).each( function( i ) {
var $bookBlock = $( this ),
$nav = $bookBlock.next().children( 'span' ),
bb = $bookBlock.bookblock( {
speed : 600,
shadows : false
} );
// add navigation events
$nav.each( function( i ) {
$( this ).on( 'click touchstart', function( event ) {
var $dot = $( this );
$nav.removeClass( 'bb-current' );
$dot.addClass( 'bb-current' );
$bookBlock.bookblock( 'jump', i + 1 );
return false;
} );
} );
// add swipe events
$bookBlock.children().on( {
'swipeleft' : function( event ) {
$bookBlock.bookblock( 'next' );
return false;
},
'swiperight' : function( event ) {
$bookBlock.bookblock( 'prev' );
return false;
}
} );
} );
}
};
})();
</script>
<script>
Page.init();
</script>
</body>
</html>