-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other suggestion to get animation pages transition #41
Comments
I think the best way to do something like this is still to use css like the following. I would use a fixed position epub like:
and write a hook to split the content up into divs and inject the pageflip css. The main issues I see with going this route is that the pageNext() function would be broken, as the chapter would appear to a 1 page long. Any thoughts on how to allow overriding this would be appreciated, but to just try it out you could create your own page turning function and just call book.nextPage() when your ready to switch chapters. |
I have made a test to check if BookBlock could be used in an epub online reader. |
Going to close this for now - still no ideal way split book content up into divs, would require writing a new renderer. Happy to see it reopened in the future. |
After my unsuccesfull try to get two page layouts to make a good animantion I suggest something new, but I'm not an expert in this field so I want to share this before start coding and know your opinion.
First we convert the page to a canvas object using html2canvas (https://github.com/niklasvh/html2canvas) and then animate the canvas object.
What do you think about this?
The text was updated successfully, but these errors were encountered: