-
colorFade in Javascript
Hi all,
I’m currently trying to change a little piece of javascript in a website I’m updating for a friend, however, javascript has never been my best side.
There are some images that when you scroll over them, they animate with a fade to mid-opacity black.
I think I have found the bit of script that controls this, but can’t figure out how to change it so that it fades to color instead.
$(‘div.profile,div.profilename’).hover(function(){
$(this).children(‘.profile,.profilename’).stop().fadeTo(150, 0.6);},function(){
$(this).children(‘.profile,.profilename’).stop().fadeTo(150, 0);
});I read that I need to put in “colourFade” instead of “fadeTo” – but it doesn’t work.
I’d be grateful for any help!
Thanks!