Hi Stef,

You can write a custom animation like this:

jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback);
};


Then, you can do this:

        $(".bio-toggler").click(function () {
                $("#bio-form").fadeToggle()
        });


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Feb 5, 2008, at 1:34 PM, stef wrote:


toggle() works great but im wondering if its possible to combine it
with fadeIn / fadeOut so that the change isnt so abrupt? i tried just
appending it after toggle() in the code below but that doesnt work.
anyone?

        $(".bio-toggler").click(function () {
                $("#bio-form").toggle()
        });

Reply via email to