blasten / turn.js

The page flip effect for HTML5
www.turnjs.com
Other
7.23k stars 2.48k forks source link

Adding Left & Right Buttons to the Flipbook #523

Open parimgopinaidu opened 9 years ago

parimgopinaidu commented 9 years ago

Hi i tried to add the Left & Right Button to the Flip page .. but Unable.. i added them because if some one unable to flip it with finger tip in Tablet version so button helps him.. Please check the URL and please suggestion me the necessary thing .. http://jsfiddle.net/A9a7E/9987/

Thanks Gopi

quinns commented 9 years ago

This worked for me:

<button id="previousPage">Previous page</button>
<button id="nextPage">Next page</button>
jQuery(document).ready(function() {
        $('#previousPage').click(function(){
            $('#book').turn('previous');
        });
        $('#nextPage').click(function(){
            $('#book').turn('next');
        });
});