djgrant / heidelberg Goto Github PK
View Code? Open in Web Editor NEWA Sass powered animated book plugin
License: MIT License
A Sass powered animated book plugin
License: MIT License
Image having "dark areas" when chrome has page zoom between 100 and 200% and you paginate.
If you are in 100%, or 200%, that doesn't happen.
A number of people report similar problems with chrome, but seems like the solution required to fix it is already applied to the code:
-webkit-backface-visibility: hidden;
-webkit-transform: rotate(0);
-moz-transform: rotate(0);
transform: rotate(0);
Is there any other way to avoid this problem?
I've made this video to make it clearer on the issues we have:
Thanks
First of all, thank you for your awesome work !
I discovered a tiny bug.
If you programmatically turning a page right after init like this:
var book1 = new Heidelberg($('#Heidelberg-example-1'), {
previousButton: $('#previous'),
nextButton: $('#next'),
hasSpreads: true,
onPageTurn: function(el, els) {
console.log('Page turned');
},
onSpreadSetup: function(el) {
console.log('Spread setup');
}
});
book1.turnPage(5);
Page 5 is active, but webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend
events wont be triggered - See file heidelberg.js line 207
els.pagesAnimating.on('webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend', function () {
els.pagesAnimating.removeClass('is-animating');
els.pagesActive.removeClass('was-active');
}.bind(document));
and you will have unexpected 'is-animating' pages.
As a result, if you keep turning the pages 'forward', the left page will stay the same.
My goal was to init the book and open it at a given page. I guess, It could be done directly by adding an option to Heidelberg and update the code around line 80-88. But I am not sure it's a wanted behavior.
if(!options.canClose) {
var coverEl = $('<div />').addClass('Heidelberg-HiddenCover');
el.prepend(coverEl.clone());
el.append(coverEl.clone());
els.pages.eq(0).add(els.pages.eq(1)).addClass('is-active');
}
else {
els.pages.eq(0).addClass('is-active');
}
I was hoping to come with a pull request to fix this, but I don't have it yet. I was hoping to have some feedbacks and advices from you.
All the best !
Hi,
I am trying to integrate your library in a Angular2 project. I am using npm, webpack and typescript. I am pretty new to all of this and I am not able to do so.
If you are not familiar with Angular2 I don't think it's a issue just a how to in TypeScript/RequireJS would be enough for me to manage.
Thanks !
I can't take a screenshot because my laptop can't cope. Guessing this is probably wontfix anyway.
I've been trying to fix this today, but still have no idea why it is happening.
When rotating a mobile device when viewing heidelberg, it locks up for a while (six seconds on my iPhone 5, like 30 seconds on an Amazon Fire Phone). Discovered it locally but it happens on the gh-pages site too. It doesn't happen on the lostmy.name site, which is confusing—I have no idea why it works. It works okay on my iPhone 6 until I put too many images in it.
Chrome latest. When pressing jump to page 9, the image on the right turns into the right page of the page previous to page 9, instead of what it was when I clicked go to page 9.
I am so bad at explaining stuff :(
Click jump to page 9 and watch a muddy hippo appear from nowhere and be flipped to the left!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.