Views
Actions

Method: zoom

From Turn.js Documentation
Jump to: navigation, 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);

See also

Main Page > API > Turn Methods > Method: zoom