mirror of
https://github.com/blasten/turn.js.git
synced 2025-04-06 03:57:41 +08:00
Merge 673372c7f2ea6f504292b43af43b8cb29fb0a98d into 08c1f6599a1412b145c7bf645a1f28c14db12742
This commit is contained in:
commit
991a1a1fa2
35
index.html
Normal file
35
index.html
Normal file
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Flipbook dengan Turn.js</title>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="turn.min.js"></script> <!-- Pastikan turn.min.js ada di folder yang benar -->
|
||||
<style>
|
||||
body { background: #f0f0f0; text-align: center; }
|
||||
#flipbook { width: 600px; height: 400px; margin: auto; }
|
||||
.page { width: 100%; height: 100%; background: white; text-align: center; line-height: 400px; font-size: 24px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="flipbook">
|
||||
<div class="page">Halaman 1</div>
|
||||
<div class="page">Halaman 2</div>
|
||||
<div class="page">Halaman 3</div>
|
||||
<div class="page">Halaman 4</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#flipbook").turn({
|
||||
width: 600,
|
||||
height: 400,
|
||||
autoCenter: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user