Views
Actions

Constructor

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
 
Line 16: Line 16:
 
$("#flipbook").turn({page: 1, acceleration: true, gradients: true});
 
$("#flipbook").turn({page: 1, acceleration: true, gradients: true});
 
</pre>
 
</pre>
 
[[Turn Options|See Turn Options]]
 
  
 
== Zoom Constructor ==
 
== Zoom Constructor ==
Line 27: Line 25:
 
</pre>
 
</pre>
  
[[Zoom Options|See Zoom Options]]
+
== See also ==
 +
 
 +
* [[Turn Options|See Turn Options]]
 +
* [[Zoom Options|See Zoom Options]]
  
 
<yambe:breadcrumb>API</yambe:breadcrumb>
 
<yambe:breadcrumb>API</yambe:breadcrumb>

Latest revision as of 21:14, 8 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.

[edit] Turn Constructor

Syntax:

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

For example:

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

[edit] Zoom Constructor

Syntax:

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

[edit] See also

Main Page > API > Constructor