Technically font-weight can be a number, like 100 or 800, but practically speaking browsers only implement either normal or bold.
Animate takes either a number or one of "hide", "show", or "toggle". So your "bold" won't work. In theory you could set the font-weight to a number then pass in a number to animate. (400 is "normal" weight, 700 is bold [1]) Alas this doesn't seem to work in jQuery. Karl [1] ( http://www.w3schools.com/css/pr_font_weight.asp ) On 2/2/07, Allan Mullan <[EMAIL PROTECTED]> wrote: > Hey all, > > I'm trying to get animate() to fade font-weight but it's not working. > I've tried the following: > > $('a').mouseover(function() { > $(this).animate({fontWeight: 'bold'}, 'slow'); > }); > > But that doesn't work - I've also tried to put quotes around the > fontWeight and tried font-weight. > I get the following error: > > e[prop[p]] is not a function (line 1582) > > Can anyone tell me if/how animating font-weight is possible? > > Thanks, > Allan > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
