Method: zoom: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
<pre class="javascript">
<pre class="javascript">
// Reduce the size in half of the flipbook
// Reduce the size in half of the flipbook
$("#flipbook").turn("zoom", 0.5, 0);
$("#flipbook").turn("zoom", 0.5);
</pre>
</pre>



Revision as of 01:47, 7 July 2012

Increases or decreases the size of the flipbook. The zoom method changes the width and height of the flipbook according to the scaling factor. If the factor is 1, the flipbook will take the original size assigned by the size method.

Parameter Type Description Default Value
factor Number Factor of multiplication You must specify this parameter

Example:

// Reduce the size in half of the flipbook
$("#flipbook").turn("zoom", 0.5);

See also

<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>