Can the colors of the fade effect be modified?

adamo - August 26, 2009 - 15:22
Project:DHTML Menu
Version:6.x-3.5
Component:Javascript code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

On my site, the text appears green during the fade which looks strange with the background color. Can this be modified through a theme function or something? Thanks in advance.

#1

SeanBannister - September 10, 2009 - 03:14

I can confirm this happens on one of our sites as well, I was just searching for a solution. Funny things is there's no green in any of our style sheets so I'm unsure where it's coming from.

#2

adamo - September 10, 2009 - 17:10

It seems like the green only becomes apparent in Firefox... Is that true for you as well?

#3

SeanBannister - September 11, 2009 - 07:57

Yeah I just tested a few browsers and it's only happens in Firefox, I'm running Firefox 3.0. I also see the same thing happening on the official demo http://dev.ermarian.net/dhtml_menu/

#4

adamo - September 11, 2009 - 15:08

It happens with other things that do a fade effect as well, such as Views Slideshow. If anyone has any ideas I'd love to hear them.

#5

adamo - September 14, 2009 - 15:45

I have found that if you set the background of the text element that you are fading there won't be any greenish background. It's only an issue if the background of the text is transparent.

#6

SeanBannister - September 15, 2009 - 00:15

That's strange, good find.

For testing purposes I set the text color to white because then the green really stands out. I realised if you set the background of ANY parent item to black it stops the green fade, but it only works with dark colors for example try a light color like #EDF5FA. Then I made the font-size really big and what's actually happening is as the font goes transparent there's a green border around the text, and I'm unsure if the black background is actually stopping the the green border or if it make it less visible.

 
 

Drupal is a registered trademark of Dries Buytaert.