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.

Description:<br />

tl: Top Left.<br />

tr: Top right.<br />

r: Right (hard pages only)<br />

br: Bottom right.<br />

bl: Bottom left.<br />

l: Left (hard pages only)<br />

Constructor<br />

The constructor is the function that will turn the container into a<br />

flipbook. Because turn.js uses a single instance, it’s not necessary<br />

to have an external reference to it.<br />

Example:<br />

$(‘#flipbook’).turn([options]);<br />

Notice that the constructor only has one argument called options<br />

and it’s optional.<br />

Options<br />

The options define characteristics of the flipbook. All the keys are<br />

optional.<br />

Option Type Default value Description<br />

acceleration Boolean true<br />

Sets the hardware<br />

acceleration mode, for<br />

touch devices this value<br />

must be true.

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

Saved successfully!

Ooh no, something went wrong!