Method: zoom

From Turn.js Documentation
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


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

See also

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