Option: max

From Turn.js Documentation
Revision as of 23:57, 8 July 2012 by Emmanuel (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the maximum zoom factor. max is the scaling factor to be used when zooming in.

Type Default value
Number or Function You must specify this parameter


  • Using a Number
// This will increase three times the size of the flipbook
	flipbook: $("#flipbook"),
	max: 3
  • Using a Function
// If we want to make the flipbook 3000 width when zoomed in.
	flipbook: $("#flipbook"),
	max: function() {
		return 3000/$('.magazine').width();

<yambe:breadcrumb>Zoom Options</yambe:breadcrumb>