Skip to content

Commit 9db2397

Browse files
committed
turn.js v0.1
0 parents  commit 9db2397

File tree

13 files changed

+1424
-0
lines changed

13 files changed

+1424
-0
lines changed

demos/.DS_Store

6 KB
Binary file not shown.

demos/magazine/.DS_Store

6 KB
Binary file not shown.

demos/magazine/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
5+
<script type="text/javascript" src="../../turn.min.js"></script>
6+
7+
<style type="text/css">
8+
body{
9+
background:#ccc;
10+
}
11+
#magazine{
12+
width:1152px;
13+
height:752px;
14+
}
15+
#magazine .turn-page{
16+
width:576px;
17+
height:752px;
18+
background-color:#ccc;
19+
background-size:100% 100%;
20+
}
21+
</style>
22+
</head>
23+
<body>
24+
<div id='magazine'>
25+
<div style="background-image:url(pages/01.jpg);"></div>
26+
<div style="background-image:url(pages/02.jpg);"></div>
27+
<div style="background-image:url(pages/03.jpg);"></div>
28+
<div style="background-image:url(pages/04.jpg);"></div>
29+
<div style="background-image:url(pages/05.jpg);"></div>
30+
<div style="background-image:url(pages/06.jpg);"></div>
31+
</div>
32+
33+
34+
<script type="text/javascript">
35+
36+
$('#magazine').bind('turned', function(e, page) {
37+
38+
console.log('Current view: ', $('#magazine').turn('view'));
39+
40+
})
41+
42+
$('#magazine').turn({acceleration: true, shadows: true});
43+
44+
45+
</script>
46+
47+
</body>
48+
</html>

demos/magazine/pages/.DS_Store

6 KB
Binary file not shown.

demos/magazine/pages/01.jpg

103 KB
Loading

demos/magazine/pages/02.jpg

88.2 KB
Loading

demos/magazine/pages/03.jpg

139 KB
Loading

demos/magazine/pages/04.jpg

85.2 KB
Loading

demos/magazine/pages/05.jpg

115 KB
Loading

demos/magazine/pages/06.jpg

114 KB
Loading

0 commit comments

Comments
 (0)