On 25 Giu, 11:07, Pegpro <[EMAIL PROTECTED]> wrote:
> How can I make jquery do an effect when clicking a link and when it is
> finished animating follow the link?

you can use a callback function, that is to say a function that is
called when the effect has finished :)
fadeOut, for example:

$('a.myClass').click(function(e){
        e.preventDefault();
        var $this = $(this), link = $this.attr('href');
        $this.fadeOut(function(){
                window.location = link;
        });
});

Reply via email to