summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-03-03 14:37:59 +0300
committerAndrew Dolgov <[email protected]>2017-03-03 14:37:59 +0300
commitf2cdda952e70ef23db5d665314de1aa0b13e21d8 (patch)
treec1ed9a0abd7ba753a8c435bcb8ac2d724656d854 /read.html
parent1f571c85616ee5b9151ab67cd47f83e318968ced (diff)
add experimental page transitions
Diffstat (limited to 'read.html')
-rw-r--r--read.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/read.html b/read.html
index 76f02fd..4969137 100644
--- a/read.html
+++ b/read.html
@@ -328,9 +328,15 @@
baseUrl + "lib/jquery.mobile-1.4.5.js",
baseUrl + "js/swipes.js" ], null, renderer.doc.head);
+ EPUBJS.core.addCss(baseUrl + "css/transitions.css", null, renderer.doc.head);
+
if (callback) callback();
}
+ EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){
+ this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)';
+ }
+
var book = ePub({
restore: false,
});