Views
Actions

Property: animating

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
  
 
<pre class="javascript">
 
<pre class="javascript">
$("#flipbook").turn(‘animation’);
+
function isAnimating() {
 +
if ($("#flipbook").turn("animation"))
 +
alert('Animating');
 +
else
 +
alert('Not animating');
 +
}
 
</pre>
 
</pre>
  
 
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>

Revision as of 20:58, 5 July 2012

Returns true when animating a page.

Example:

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