Views
Actions

Property: animating

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
Returns true when animating a page.
+
Returns true when animating a page, in other words when a folded page is visible.
  
 
Example:
 
Example:
  
 
<pre class="javascript">
 
<pre class="javascript">
$("#flipbook").turn(‘animation’);
+
function isAnimating() {
 +
  if ($("#flipbook").turn("animating")) {
 +
    alert('Animating a page!');
 +
  }
 +
}
 
</pre>
 
</pre>
 
 
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>

Latest revision as of 23:27, 25 November 2012

Returns true when animating a page, in other words when a folded page is visible.

Example:

function isAnimating() {
  if ($("#flipbook").turn("animating")) {
    alert('Animating a page!');
  }
}
Main Page > API > Turn Properties > Property: animating