I have this jQuery function :
$('.tracklistOff').find('.trackon').clone().insertAfter(($(param).parents('.trackon')));
I clone the div and I add it. The CSS class of trackon is :
.trackon{width:710px; height:26px; color:#CCCCCC; font-weight:bold; float:left;}
I’d like, when I add it, to put a red background color of trackon, and shade it to black; a sort of fadeIn(), without starting from hide (but from red) and finish to the trackon background (in my context, should be white).
How can I do it without any plugins?
You can do it with this: http://plugins.jquery.com/project/color
It’s a plugin, yes, I know. But it’s the only way I know how to do it short of rewriting the plugin yourself.