27.07.2017 Views

turnjs4-api-docs

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

autoCenter Boolean false<br />

display String single<br />

duration Number 600<br />

gradients Number true<br />

Centers the flipbook<br />

depending on how many<br />

pages are visible.<br />

Sets the display mode.<br />

Values: single, double<br />

Sets the duration of the<br />

transition in milliseconds<br />

Shows gradients and<br />

shadows during the<br />

transition.<br />

height<br />

Number<br />

Height of the<br />

selector<br />

Sets the height of the<br />

selector<br />

inclination Number 0<br />

Sets the inclination of the<br />

page during the transition<br />

page Number 1 Sets the first page<br />

pages<br />

Number<br />

The number of<br />

pages in the DOM<br />

Sets the number of pages<br />

when Object {} Sets event listeners<br />

width<br />

Number<br />

Width of the<br />

selector<br />

Sets the width of the page<br />

Adding options to the constructor:<br />

$(‘#flipbook’).turn({<br />

display: ‘double’,<br />

inclination: 50,<br />

when: {<br />

turned: function(event, page, pageObj) {

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!