Views
Actions

Property: animating

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
<pre class="javascript">
 
<pre class="javascript">
 
function isAnimating() {
 
function isAnimating() {
 +
 
if ($("#flipbook").turn("animation"))
 
if ($("#flipbook").turn("animation"))
 
alert('Animating');
 
alert('Animating');
 
else
 
else
alert('Not animating');
+
alert('No 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('No animating');

}
Main Page > API > Turn Properties > Property: animating