Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 799 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 799 Bytes

pageflip

This is a CSS3 and JavaScript library that creates a digital magazine using all the advantages of HTML5.

Live Demo

How to use

You just need to include the css:

<link rel='stylesheet' href='page-flip.css'>

Also include the javascript file:

<script src="page-flip.js"></script>

Then init your pageflip, providing the main element (where you want to put the pageflip) and the pages url.

<script>
  new Pageflip('#myDiv', [
    '/page_001.jpg',
    '/page_002.jpg',
    '/page_003.jpg',
    '/page_004.jpg',
    '/page_005.jpg',
    '/page_006.jpg'
  ]);
</script>

IMPORTANT:

You need to provide an even number of pages!

For while, the pageflip only accepts images that is: 769x1200 pixels!