Constructor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
$(".magazine").turn([options]); | $(".magazine").turn([options]); | ||
</pre> | </pre> | ||
For example: | |||
<pre class="javascript"> | |||
$(".magazine").turn({page: 1, gradients: true}); | |||
</pre> | |||
[[Turn Options]] | [[Turn Options]] | ||
Revision as of 03:27, 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]);
For example:
$(".magazine").turn({page: 1, gradients: true});
Zoom Constructor
$(".viewport").zoom(options);
<yambe:breadcrumb>API</yambe:breadcrumb>