summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-02-20 20:28:10 +0300
committerAndrew Dolgov <[email protected]>2018-02-20 20:28:10 +0300
commit642bede5b6446165cf1f169a4752537eb53c24d0 (patch)
tree3d2e9b772389d6cfcb6c6c05cf36f142a0e4f0a4
parent9d24dc3ff0421fd9f768d453a9c74b2b48f4087a (diff)
exp: enable transitions after a delay
-rw-r--r--read.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/read.html b/read.html
index 339e41b..ca08996 100644
--- a/read.html
+++ b/read.html
@@ -399,12 +399,19 @@
localforage.getItem("epube.disable-transitions").then(function(notransitions) {
if (!notransitions) {
- EPUBJS.core.addCss(baseUrl + "css/transitions.css", null, renderer.doc.head);
- EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){
- this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)';
- }
+ window.setTimeout(function() {
+
+ EPUBJS.core.addCss(baseUrl + "css/transitions.css", null, renderer.doc.head);
+
+ EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){
+ this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)';
+ }
+
+ }, 250);
+
}
+
});
if (callback) callback();