forked from codrops/BookBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·166 lines (130 loc) · 4.96 KB
/
index.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
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<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</title>
<meta name="description" content="BookBlock: A Content Flip Plugin" />
<meta name="keywords" content="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/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300' rel='stylesheet' type='text/css' />
<script type="text/javascript" src="js/modernizr.custom.79639.js"></script>
<noscript><link rel="stylesheet" type="text/css" href="css/noJS.css" /></noscript>
</head>
<body>
<div class="container">
<!-- Codrops top bar -->
<div class="codrops-top">
<a href="https://tympanus.net/codrops/2012/08/29/multiple-area-charts-with-d3-js/">
<strong>« Previous Demo: </strong>Multiple Area Charts with D3.js
</a>
<span class="right">
<a href="https://dribbble.com/kevinhowdeshell">Images by Kevin Howdeshell</a>
<a href="https://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/">
<strong>Back to the Codrops Article</strong>
</a>
</span>
<div class="clr"></div>
</div><!--/ Codrops top bar -->
<header>
<h1><strong>BookBlock</strong> – A Content Flip Plugin</h1>
<h2>Flip any content like in a booklet</h2>
<nav class="codrops-demos">
<a class="current-demo" href="index.html">Demo 1</a>
<a href="index2.html">Demo 2</a>
<a href="index3.html">Demo 3</a>
</nav>
<div class="support-note"><!-- let's check browser support with modernizr -->
<span class="no-csstransforms">CSS transforms are not supported in your browser</span>
<span class="no-csstransforms3d">CSS 3D transforms are not supported in your browser</span>
<span class="no-csstransitions">CSS transitions are not supported in your browser</span>
</div>
</header>
<section class="main">
<div class="bb-custom-wrapper">
<div id="bb-bookblock" class="bb-bookblock">
<div class="bb-item">
<a href="https://drbl.in/bKVq"><img src="images/demo1/1.jpg" alt="image01"/></a>
</div>
<div class="bb-item">
<a href="https://drbl.in/ciTX"><img src="images/demo1/2.jpg" alt="image02"/></a>
</div>
<div class="bb-item">
<a href="https://drbl.in/cLHx"><img src="images/demo1/3.jpg" alt="image03"/></a>
</div>
<div class="bb-item">
<a href="https://drbl.in/bAfn"><img src="images/demo1/4.jpg" alt="image04"/></a>
</div>
<div class="bb-item">
<a href="https://drbl.in/dcbE"><img src="images/demo1/5.jpg" alt="image05"/></a>
</div>
</div>
<h3>Illustrations by <a href="https://dribbble.com/kevinhowdeshell">Kevin Howdeshell</a></h3>
<nav>
<a id="bb-nav-prev" href="#">Previous</a>
<a id="bb-nav-next" href="#">Next</a>
<a id="bb-nav-jump" href="#" title="Go to last item">Last page</a>
</nav>
</div>
</section>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquerypp.custom.js"></script>
<script type="text/javascript" src="js/jquery.bookblock.js"></script>
<script type="text/javascript">
$(function() {
var Page = (function() {
var config = {
$bookBlock: $( '#bb-bookblock' ),
$navNext : $( '#bb-nav-next' ),
$navPrev : $( '#bb-nav-prev' ),
$navJump : $( '#bb-nav-jump' ),
bb : $( '#bb-bookblock' ).bookblock( {
speed : 800,
shadowSides : 0.8,
shadowFlip : 0.7
} )
},
init = function() {
initEvents();
},
initEvents = function() {
var $slides = config.$bookBlock.children(),
totalSlides = $slides.length;
// add navigation events
config.$navNext.on( 'click', function() {
config.bb.next();
return false;
} );
config.$navPrev.on( 'click', function() {
config.bb.prev();
return false;
} );
config.$navJump.on( 'click', function() {
config.bb.jump( totalSlides );
return false;
} );
// add swipe events
$slides.on( {
'swipeleft' : function( event ) {
config.bb.next();
return false;
},
'swiperight' : function( event ) {
config.bb.prev();
return false;
}
} );
};
return { init : init };
})();
Page.init();
});
</script>
</body>
</html>