GithubHelp home page GithubHelp logo

akingdom / pageflip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madureira/pageflip

0.0 0.0 0.0 1.74 MB

:book: A simple CSS3/JS page flip

License: MIT License

CSS 45.91% JavaScript 54.09%

pageflip's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.