»
S
I
D
E
B
A
R
«
jQuery Disabling All Effects
May 31st, 2010 by admin

Some web users may find web page effects redundant and time-consuming, especially for returning visitors. jQuery has a way to disable all animations from one access point but still supports the animate method and its final value.

<script>
$.fx.off = true;
$(document).ready(function () {
  $('#animate').click(function () {
    $('.box').animate({ width: '+=100', height: '+=100' });
  });
});
</script>
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay



Similar Posts:
Leave a Reply

Powered by WP Hashcash