Coder Social home page Coder Social logo

Support double page divs? about turn.js HOT 2 CLOSED

jimmykhlam avatar jimmykhlam commented on June 16, 2024
Support double page divs?

from turn.js.

Comments (2)

blasten avatar blasten commented on June 16, 2024

Are the pages images?
It is possible in both cases.

  1. If you are using images:

It would be the same application used for CSS sprites.

Use CSS:

Left page:
background-image:url(double-page.jpg);
background-position:0% 0%;

Right page:
background-image:url(double-page.jpg);
background-position:-50% 0%;

  1. Using only HTML:
    It is even more easy.
    Just separate your HTML in two parts.

Limitation: the first page should be single page, otherwise just turn to page 2.

Let me know, if it's a good solution or not.

Cheers.

from turn.js.

georgeorgeorge avatar georgeorgeorge commented on June 16, 2024

Love the plugin by the way. It's the main reason why I finally joined GitHub!

I was also wondering whether it was possible to have a spread option in this plugin. I have been Ajaxing Adobe Edge animations into the books pages, which the plugin handles brilliantly by the way, but it would be amazing if it could support some sort of spread overlay system where you could have an animation or something that requires 2 pages take over the whole spread.

If it had this feature I would have no qualms over donating time or resources to the project.

I'd love to know your thoughts on this. Keep up the awesome work!

George

from turn.js.

Related Issues (20)

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.