diff options
author | Andrew Dolgov <[email protected]> | 2017-03-03 14:37:59 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-03-03 14:37:59 +0300 |
commit | f2cdda952e70ef23db5d665314de1aa0b13e21d8 (patch) | |
tree | c1ed9a0abd7ba753a8c435bcb8ac2d724656d854 /read.html | |
parent | 1f571c85616ee5b9151ab67cd47f83e318968ced (diff) |
add experimental page transitions
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, }); |