Skip to content

madureira/pageflip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Releases

No releases published

Packages

No packages published