I do know that turn.js has it's own zoom but, I have added a simple zoom script with css zoom.
It's working, I mean when you press the zoom button it does zoom in the page (and zoom out) but I can't seem to be able to figure out how to resize the flipbook.
I do have an eventListener for the full screen but it doesn't seem to work for zoom. (I know this might be really simple but I just couldn't figure it out.)
<button onclick="zoomed()" class="fa fa-search-plus" > </button>
<!-- Zoom -->
var zoom_el = document.getElementById("flipbook");
var zom= true;
function zoomed(){
if (zom == true) {
zoom_el.style.zoom = 1.5;
zoom_el.style.MozTransform = 'scale(1.5)';
zoom_el.style.WebkitTransform = 'scale(1.5)';
autoCenter: true
zom = false
}
else {
zoom_el.style.zoom= 1;
zoom_el.style.MozTransform = 'scale(1)';
zoom_el.style.WebkitTransform = 'scale(1)';
autoCenter: true
zom=true
}
}
<!-- EventListener -->
window.addEventListener('resize', function (e) {
flip.style.width = '';
flip.style.height = '';
$(flip).turn('size', flip.clientWidth, flip.clientHeight);