Method: zoom

From Turn.js Documentation
Revision as of 01:35, 7 July 2012 by Emmanuel (talk | contribs)
Jump to navigation Jump to search

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, 0);

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