Hi Chris,

Using .show() and .hide() with a speed will animate the height, width, and opacity of the element.

You'll probably have better/smoother results if you use .slideDown() and .slideUp() . Let us know how that works for you.


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



On Jul 19, 2007, at 3:41 AM, Chris J. Lee wrote:


I'm having problems with the slide down. It's severly delayed. i'm not
an expert at jquery at all. If it isn't already obvious.

I'm trying to program a text link to slide down a menu from above.
here is the code:

        $("#activate").bind("click", function() {
                $(this).toggle(function(){
                        $("#activate").text("- HIDE ").show("slow");
                        $("#dropdown").toggle().show("fast");
                        }, function() {
                        $("#activate").text("+ SHOW").show("slow");
                        $("#dropdown").toggle().hide("slow");

                });
        });

if you need to see the live page its here:
http://www.holymoleephoto.com/beta/


Reply via email to