Views
Actions

Constructor

From Turn.js Documentation
Revision as of 21:14, 8 July 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

The constructor is where the flipbook or the zoom viewport is created. Therefore, it's called once and cannot be omitted.

Both the flipbook and the zoom viewport have independent constructors.

Turn Constructor

Syntax:

$("#flipbook").turn([options]);

For example:

$("#flipbook").turn({page: 1, acceleration: true, gradients: true});

See Turn Options

Zoom Constructor

Syntax:

$("#zoom-viewport").zoom(options);

See Zoom Options

Main Page > API > Constructor