Constructor: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The constructor is where either the flipbook or the zoom viewport are created. Therefore, it's called once and cannot be omitted.   
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.
Both the flipbook and the zoom viewport have independent constructors.

Revision as of 03:24, 6 July 2012

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

$(".magazine").turn([options]);

Zoom Constructor

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

<yambe:breadcrumb>API</yambe:breadcrumb>