FORUMS: list search recent posts

colorFade in Javascript

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Liam King
colorFade in Javascript
on Aug 16, 2011 at 9:55:15 pm

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.

$(this).children('.profile,.profilename').stop().fadeTo(150, 0.6);

$(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!

Return to posts index

Curtis Thompson
Re: colorFade in Javascript
on Aug 22, 2011 at 12:48:51 am


outside of the context of the full page you're working on, it's hard to give you a concrete answer. can you post a sample somewhere for us to see?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved