Share on Google+Share on Google+

In this tutorial, we will discuss about "" property.

In this tutorial, we will discuss about "" property. When this property is set to true, all animation methods will immediately set elements to their final state when called, rather than displaying an effect.


<!DOCTYPE html>
div { width:150px; height:130px; margin:15px; float:left;
background:purple; }
<script src="jquery-1.4.2.js"></script>
<p><input type="button" value="Run"/> <button>Toggle fx</button></p>
var toggleFx = function() {
$ = !$;




Description of the program

When application starts, and if you click on "run" , it will hide slowly showing you a animation effect. But when you click on "Togglefx" button ,it will only show/hide on clicking "Run " without showing you any animation effect .

Download Source Code 

Click here to see demo



Posted on: August 4, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.