views:

88

answers:

2
$(document).ready(function(){
    $('a.nav_menu')
        .css( {backgroundPosition: "0 0"} )
        .mouseover(function(){
            $(this).animate({
            backgroundPosition:"(-650px 0)",
            'color': '#000000'
        }, {duration:700})
        })
        .mouseout(function(){
            $(this).animate({backgroundPosition:"(0px 0)"}, {duration:900, complete:function(){
                $(this).css({backgroundPosition: "0 0"})
            }})
        })
});

What is wrong with this? The text color doesn't change.

+5  A: 

You need to either use jQuery UI effects or the color animation plugin to animate colors.

tvanfosson
Thanks a lot for helping
Jordan Pagaduan
A: 

You need to use this plugin to animate colours.

Will Vousden
Tell us what "this" is. When providing answers, imagine links don't exist.
Jonathan Sampson