Replace effect

Replace effect

Hello all

I have developed a website using some effects (fadeIn, fadeOut, slideUp ...) which works fine, but now I see that those transitions are very slow in the iphone.

As everything else works fine, I would like to exchange those effects for hide and show during runtime and keeping the callback functions...

is there an easy way to do it?

example:
  1. //ORIGINAL
  2.         $('#clickme').click(function() {
  3.                 $('#book').slideUp('slow', function() {
  4.                           // Animation complete.
  5.                 });
  6.         });
  7. // REPLACED
  8.         $('#clickme').click(function() {

  9.                 $('#book').hide('slow', function() {

  10.                           // Animation complete.

  11.                 });

  12.         });
Thank you!

marc